Jump to content

MiritaXD

Membru
  • Posts

    186
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by MiritaXD

  1. Cred ca sunt in baza de date(daca nu gasesti nimic la OnGamemodeInit)
  2. Uite aici cu wipe. miritaxd (1).sql
  3. Nici nu-mi daduseam seama de parametri
  4. modifica asta GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]10000000); cu asta GivePlayerMoney(i, PlayerInfo[i][pCash]10000000); Modifica "playerid" in "i" in acel cod.
  5. if(PlayerInfo[playerid][pAdmin] <= 6) return SendClientMessage(playerid, -1, "Nu merge.); incearca si asa. E bine ce ai facut tu acolo.
  6. instaleaza aste https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/
  7. 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.
  8. 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]
  9. 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/
  10. schimba 252 cu MAX_VEHICLES
  11. pune codu cu hidde la asta se pune la OnPlayerClickTextDraw if(clickedid == Text:INVALID_TEXT_DRAW) { if(variabilacareverificadacaestiinds == 1) { CancelSelectTextDraw( playerid ); PlayerTextDrawHide(playerid, TD); } }
  12. 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));
  13. din cate stiu gm-ul burrned mai are un fiser systems.inc, poate se afla acolo
  14. Trebuie sa faci acel textdrw selectabil
  15. MiritaXD

    Prblm

    for(new i=0; i < sizeof(Vehicles); i++)
  16. https://wiki.sa-mp.com/wiki/UpdateVehicleDamageStatus
  17. Update(userID, pLevelx); // e mare lucru sa adauge asta?(cred ca asa era functia) :))
  18. 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; }
  19. playerInfo[playerid][pmoney] += bani;
  20. da-mi sau verifica la OnPlayerKeyStateChange, din cate stiu e un cod pus aiurea
  21. se intampla asta si cand te dai jos dintr-o masina?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.