-
Posts
186 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
News
Documentation
Everything posted by MiritaXD
-
Cred ca sunt in baza de date(daca nu gasesti nimic la OnGamemodeInit)
-
Uite aici cu wipe. miritaxd (1).sql
-
Nici nu-mi daduseam seama de parametri
-
modifica asta GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]10000000); cu asta GivePlayerMoney(i, PlayerInfo[i][pCash]10000000); Modifica "playerid" in "i" in acel cod.
-
if(PlayerInfo[playerid][pAdmin] <= 6) return SendClientMessage(playerid, -1, "Nu merge.); incearca si asa. E bine ce ai facut tu acolo.
-
Primesc o eroare cand pornesc gamemode-ul.
MiritaXD replied to Catalin Soare's topic in Discuţii scripting
instaleaza aste https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/ -
Probabil raman stocate vaolorile setat dupa un vehicul distrus/despawnat. Iar dupa ce se spawneaza un nou vechiul primeste acele valori, depinde si de cum e gandit sistemu.
-
Incearca asa [code] if(SpecialWeek == 1) { if(CheckObjects(i) < 16 && TutorialActive[i] == 0 && PlayerInfo[i][pBackpack] == 1) { szTD = ""; string = ""; new objs; for(new sq = 0; sq < 16; sq++) { if(PlayerInfo[i][pSpecialQuest][sq] == 0) { if(PlayerToPoint(45.0, i, QuestPos[sq][0], QuestPos[sq][1], QuestPos[sq][2])) { new Float: oPos[3]; GetPlayerObjectRot(i, PlayerInfo[i][pObjectQuest][sq], oPos[0], oPos[1], oPos[2]); SetPlayerObjectRot(i, PlayerInfo[i][pObjectQuest][sq], oPos[0], oPos[1], oPos[2]+35); format(string, sizeof(string), "~g~Object %d nearby~n~", sq+1), strcat(szTD, string), objs++; } else if(PlayerToPoint(75.0, i, QuestPos[sq][0], QuestPos[sq][1], QuestPos[sq][2])) format(string, sizeof(string), "~y~Object %d nearby~n~", sq+1), strcat(szTD, string), objs++; else if(PlayerToPoint(150.0, i, QuestPos[sq][0], QuestPos[sq][1], QuestPos[sq][2])) format(string, sizeof(string), "~r~Object %d nearby~n~", sq+1), strcat(szTD, string), objs++; PlayerTextDrawSetString(i, QuestTD, szTD); PlayerTextDrawShow(i, QuestTD); if(PlayerToPoint(1.0, i, QuestPos[sq][0], QuestPos[sq][1], QuestPos[sq][2])) { if(GetPlayerVirtualWorld(i) != 0) return SCM(i, COLOR_LGREEN, "Eroare: Nu poti lua acest obiect deoarece esti in alt virtual world!"); if(QuestDeelay[i] > 0) { format(string, sizeof(string), "Eroare: Poti lua un alt obiect peste %d secunde!", QuestDeelay[i]); SCM(i, COLOR_LGREEN, string); } else { if(IsPlayerInAnyVehicle(i)) SCM(i, COLOR_LGREEN, "Eroare: Nu poti colecta acest obiect deoarece esti intr-un vehicul!"); else { DestroyPlayerObject(i, PlayerInfo[i][pObjectQuest][sq]); PlayerInfo[i][pSpecialQuest][sq] = 1; SaveQuest(i); format(string, sizeof(string), "Ai gasit ~y~%d/15~w~~h~ obiecte pana acum.~n~Continua sa cauti pentru a primi premiul special!", CheckObjects(i)); PlayerTextDrawSetString(i, InfosTD, string); PlayerTextDrawShow(i, InfosTD); SetTimerEx("HideTextdraw", 4000, 0, "%d", i); if(CheckObjects(i) == 15) { format(string, sizeof(string), "["QUEST_NAME"] %s a terminat de colectat toate obiectele ascunse si a castigat premiul special!", GetName(i)); SendClientMessageToAll(COLOR_YELLOW, string); SCM(i, COLOR_YELLOW, "Felicitari! Ai terminat de colectat toate obiectele ascunse!"); SCM(i, COLOR_YELLOW, "Ai primit: 1.000.000$, 20 rp, 20 puncte rob, 20 puncte escape, 500 pp, 1 level up, 1 slot garaj."); GivePlayerCash(i, 1000000); PlayerInfo[i][pExp] += 20; PlayerInfo[i][pPremiumPoints] += 500; Update(i, pPremiumPointsx); Update(i, pRP); PlayerInfo[i][pRob] += 20; Update(i, pRobx); PlayerInfo[i][pEscapePoints] += 20; PlayerInfo[i][pLevel]++; Update(i,pLevelx); SetPlayerScore(i, PlayerInfo[i][pLevel]); UpdateVar(i, "EscapePoints", PlayerInfo[i][pEscapePoints]); PlayerTextDrawHide(i, QuestTD); if(PlayerInfo[i][pSlot][0] == 0) PlayerInfo[i][pSlot][0] = 1; else if(PlayerInfo[i][pSlot][1] == 0) PlayerInfo[i][pSlot][1] = 1; else if(PlayerInfo[i][pSlot][2] == 0) PlayerInfo[i][pSlot][2] = 1; else if(PlayerInfo[i][pSlot][3] == 0) PlayerInfo[i][pSlot][3] = 1; else if(PlayerInfo[i][pSlot][4] == 0) PlayerInfo[i][pSlot][4] = 1; else SCM(i, COLOR_LGREEN, "Nu ai primit un slot pentru vehicule deoarece ai numarul maxim de vehicule!"); UpdateSlots(i); } QuestDeelay[i] = 60; } } } } } if(objs == 0) PlayerTextDrawHide(i, QuestTD); } if(QuestDeelay[i] >= 1) QuestDeelay[i] --; }[/code]
-
Sterge filtresript'urile din server.cfg
-
fa un update la plugin'uri, in caz ca tot nu merge instaleaza astea https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/
-
schimba 252 cu MAX_VEHICLES
-
VibePlay Cauta Scripter SA:MP / CS 1.6 / CS:GO !
MiritaXD replied to sMok3 ;x's topic in Caut servicii / partener / etc.
Astept mesaj -
pune codu cu hidde la asta se pune la OnPlayerClickTextDraw if(clickedid == Text:INVALID_TEXT_DRAW) { if(variabilacareverificadacaestiinds == 1) { CancelSelectTextDraw( playerid ); PlayerTextDrawHide(playerid, TD); } }
-
uite format(coordsstring, sizeof(coordsstring), "Level: %d | Respect Points: %d/%d | Next level price: %s | Money: %s | Bank money: %s",plevel,exp,expamount,FormatNumber(pretlevel),FormatNumber(cash),FormatNumber(account));
-
din cate stiu gm-ul burrned mai are un fiser systems.inc, poate se afla acolo
-
Trebuie sa faci acel textdrw selectabil
-
for(new i=0; i < sizeof(Vehicles); i++)
- 1 reply
-
- 1
-
https://wiki.sa-mp.com/wiki/UpdateVehicleDamageStatus
-
Update(userID, pLevelx); // e mare lucru sa adauge asta?(cred ca asa era functia) :))
-
CMD:setlevel(playerid, params[]) { new userID, level; if(sscanf(params, "ud",userID, level)) return SCM(playerid, -1, "/setlevel <Name/ID> <Level>"); PlayerInfo[userID][pLevel] = level; SetPlayerScore(userID, level); return true; }
-
playerInfo[playerid][pmoney] += bani;
-
da-mi sau verifica la OnPlayerKeyStateChange, din cate stiu e un cod pus aiurea
-
se intampla asta si cand te dai jos dintr-o masina?
-
Problema Comanda /startradar si /stop radar
MiritaXD replied to Septarul's question in Ajutor Scripting
Da