Jump to content

Mister

Moderator
  • Posts

    1.886
  • Joined

  • Last visited

  • Days Won

    113

Everything posted by Mister

  1. Aveai butonul edit..... Nu vad sa scrie pe undeva ceva legat de baza de date deci ar putea sa nu se fi conectat la ea
  2. Arata comanda Pune crashdetect tasteaza iar comanda si arata ce primesti in server log
  3. Mister

    cp

    Nu se pune asa returnul Ci asa else { SendClientMessage(playerid, COLOR_LIGHTRED, "{0077ED}Server: {FFFFFF}Nu esti langa giftbox. Un checkpoint ti-a fost pus pe harta!."); DisablePlayerCheckpoint(playerid); CP[playerid] = 43; SetPlayerCheckpoint(playerid,861.5489,-1663.8907,13.5469, 3.0); return1; }
  4. hirse2[MAX_PLAYERS] Trebuie definit cu Text: inainte adica asa Text:horse2bal bla bla
  5. habar nu am, dar nu cred ca e nevoie neaparat pe numele tau, Dar chiar daca scoti banii prin card iti ia taxa si pentru mine e semnificativa, eu cumpar la prieteni chestii prin paypall si imi dau banii cand pot
  6. poti sa iti faci cont la orice varsta ca sa poti scoate banii trebuie sa ii faci legatura cu orice fel de card(nu de farmacii ) si ii poti scoate prin intermediul lui
  7. Mister

    Ajutor Pawno

    if(dialogid == /) aici ar trebuie sa fie un id sau ceva definit cum ar fi 211 sau dialog_email cum gmul tau sigur e laut de pe net autorul a sters acest id ca sa se asigure ca cel care il va lua stie macar unpic din limbajul pawn. Eu unul nu am cum sa te ajut nu am de unde sa stiu ce id are dialogul lipsa
  8. Mister

    Ajutor Pawno

    Apasa ctrl+g si scire 44653 Copiaza codul de la linia 44650 pana la 44656 si posteazal aici
  9. Mister

    Buna seara!

    Trebuie sa ai dupa ce cumperi clanu, un update in baza de date sa actualizeze datele clan si clanrank
  10. la ongamemodeinit adaugi asa SetTimer("Timersecond", 1000,false); apoi oriunde in gm adaugi asa forward Timersecond(); public Timersecond() { foreach(Player,i)// daca nu ai inlucludeul foreach pui for(new i;i<MAX_PLAYERS;i++) { new newcar = GetPlayerVehicleID(i); if(newcar == Combine1 || newcar == Combine2 || newcar == Combine3 || newcar == Combine4) { if(CombineTake[playerid] == 1) { if(IsPlayerInRangeOfPoint(playerid, 1.0, -132.26900, 50.45452, 2.11704)) { DestroyDynamicObject(Seed1); } else if(IsPlayerInRangeOfPoint(playerid, 1.0, -135.26228, 41.49727, 2.11704)) { DestroyDynamicObject(Seed2); } else if(IsPlayerInRangeOfPoint(playerid, 1.0, -137.90633, 34.21829, 2.11704)) { DestroyDynamicObject(Seed3); } else if(IsPlayerInRangeOfPoint(playerid, 1.0, -141.51561, 24.94322, 2.11704)) { DestroyDynamicObject(Seed4); } else if(IsPlayerInRangeOfPoint(playerid, 1.0, -145.13118, 15.64917, 2.11704)) { DestroyDynamicObject(Seed5); } else if(IsPlayerInRangeOfPoint(playerid, 1.0, -148.65193, 6.45007, 2.11704)) { DestroyDynamicObject(Seed6); } else if(IsPlayerInRangeOfPoint(playerid, 1.0, -158.71780, 10.34922, 2.11704)) { DestroyDynamicObject(Seed7); } else if(IsPlayerInRangeOfPoint(playerid, 1.0, -155.20543, 20.11099, 2.11704)) { DestroyDynamicObject(Seed8); } else if(IsPlayerInRangeOfPoint(playerid, 1.0, -152.36862, 28.35958, 2.11704)) { DestroyDynamicObject(Seed9); } else if(IsPlayerInRangeOfPoint(playerid, 1.0, -149.03192, 37.49228, 2.11704)) { DestroyDynamicObject(Seed10); } else if(IsPlayerInRangeOfPoint(playerid, 1.0, -146.64072, 44.93688, 2.11704)) { DestroyDynamicObject(Seed11); } else if(IsPlayerInRangeOfPoint(playerid, 1.0, -143.33273, 53.92274, 2.11704)) { DestroyDynamicObject(Seed12); } } else { SendClientMessage(playerid,COLOR_GREY," You didn't planted seeds !"); RemovePlayerFromVehicle(playerid); } } return 1; }
  11. Muta-l la onplayerupdate, recomandat ar fi la un timer de o secunda ca sa nu faca lag, dar daca nu stii.... cauta public onplayerupdate si muta acolo codul
  12. Unde ai iful cu newcar combina bla bla? Doar nu este la onplayerentercheckpoint nu?
  13. Daca primesti mesjaul asta SendClientMessage(playerid, COLOR_WHITE, "Plant finished, now go take a combine and collect the wheat."); Atunci asigurate ca masina in care esti este combine1 2 3 sau 4 Si verifica daca nu cumva distruge alt obiect. Asta este strict din partea ta, adica este ordinea cpurilor si a coordonatelor pe care trebuie sa le verifici ca sunt puse bine.
  14. Incearca sa modifici la if(IsPlayerInRangeOfPoint(playerid, 1.0 Asa if(IsPlayerInRangeOfPoint(playerid, 3.0 La toate pui 3.0 daca tot nu merge inseamna ca acele coordonate sunt gresite, si va trebui sa le iei pe toate la rand sa vezi daca sunt puse in ordinea checkpointurilor
  15. De ce nu faci asa New Float:x,:Float:y,Float:z; GetDynamicObjectPos(seed11,x,y,z); if(IsPlayerInRangeOfPoint(playerid, 3.0,x,y,z)) { DestroyDynamicObject(Seed11); } Bine, eu te-as sfatui sa pui si New seed [12]; Sed [1] = createdynamicobject bla bla bla For (new i; i <sizeof (12); i++) New Float:x,:Float:y,Float:z; GetDybamicObjectPos(seed[1],x,y,z); if(IsPlayerInRangeOfPoint(playerid, 3.0,x,y,z)) { DestroyDynamicObject(Seed[1]); } Sau doar incearca sa maresti raza de la 1.0 la 3 pentru ca esti in combina si distanta e mai mare incearca asta si daca nu merge fa cum am zis prima data
  16. Mister

    CMD:startv

    respecta modelul de postare al topicului, t.c.
  17. Ori inlocuiesti AttachObjectToVehicle cu AttachDynamicObjectToVehicle Ori inlocuiesti CreateDynamicObject Cu CreateObject
  18. Nu inteleg, ce face butonul asta in plus fata de back din browser, adica explica putin sau e acelasi lucru Orice ar fi eu sunt pro orice schimbarea e bine venita
  19. ok deci fii atent, modifica comanda /buyhous cu asta si spune acum ce iti da in mesaj dupa ce ai cumparat o casa cu noua comanda if(strcmp(cmd, "/buyhouse", true) == 0) { if(IsPlayerConnected(playerid)) { new Float:oldposx, Float:oldposy, Float:oldposz; GetPlayerName(playerid, playername, sizeof(playername)); GetPlayerPos(playerid, oldposx, oldposy, oldposz); for(new h = 1; h < sizeof(HouseInfo); h++) { if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0) { if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel]) { format(string, sizeof(string), " You must be Level %d to purchase this !", HouseInfo[h][hLevel]); SendClientMessage(playerid, COLOR_GRAD5, string); return 1; } if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) { SendClientMessage(playerid, COLOR_WHITE, " You already own a house, type /sellhouse if you want to buy this one !"); return 1; } if(GetPlayerMoney(playerid) > HouseInfo[h][hValue]) { PlayerInfo[playerid][pPhousekey] = h; HouseInfo[h][hOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255); GivePlayerMoney(playerid,-HouseInfo[h][hValue]); PlayerPlayMusic(playerid); SetPlayerVirtualWorld(playerid,HouseInfo[h][hVW]); SetPlayerPos(playerid,HouseInfo[h][hExitx],HouseInfo[h][hExity],HouseInfo[h][hExitz]); TogglePlayerControllable(playerid,0); SetTimerEx("FreezeTimer",3000,0,"d",playerid); HouseEntered[playerid] = h; GameTextForPlayer(playerid, "~w~Welcome Home~n~You can exit at any time by moving to this door and typing /exit", 5000, 3); PlayerInfo[playerid][pLocal] = h; SendClientMessage(playerid, COLOR_WHITE, "Congratulations, on your new Purchase !"); SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the new property help section !"); DateProp(playerid); OnPropUpdate(); OnPlayerUpdateEx(playerid); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, " You don't have the cash for that !"); return 1; } } } } return 1; } EDIT: vreau poza cand dai lock
  20. deci tot ce ai avut de facut a fost sa adaugi 3 linii asa if(strcmp(cmd, "/open", true) == 0) { if(IsPlayerConnected(playerid)) { for(new i = 0; i < sizeof(HouseInfo); i++) { if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]) || PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]) || HouseInfo[i][hVW] == GetPlayerVirtualWorld(playerid)) { if(PlayerInfo[playerid][pPhousekey] == i) { if(HouseInfo[i][hLock] == 1) { HouseInfo[i][hLock] = 0; GameTextForPlayer(playerid, "~w~Door ~g~Unlocked", 5000, 6); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); return 1; } if(HouseInfo[i][hLock] == 0) { HouseInfo[i][hLock] = 1; GameTextForPlayer(playerid, "~w~Door ~r~Locked", 5000, 6); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); return 1; } } else { new str22[120]; format(str22,120,"Hosue owned by %s id %d, player house %d si %d",HouseInfo[h][hOwner], h, PlayerInfo[playerid][pPhousekey],PlayerInfo[ReturnUser(HouseInfo[h][hOwner])][pPhousekey]); SendClientMessage(playerid,-1,str22); GameTextForPlayer(playerid, "~r~You Dont Have A Key", 5000, 6); return 1; } } } for(new i = 0; i < sizeof(BizzInfo); i++) { if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]) || PlayerToPoint(3, playerid,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]) || BizzInfo[i][bVW] == GetPlayerVirtualWorld(playerid)) { if(PlayerInfo[playerid][pPbiskey] == i) { if(BizzInfo[i][bLocked] == 1) { BizzInfo[i][bLocked] = 0; GameTextForPlayer(playerid, "~w~Bussiness ~g~Open", 5000, 6); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); return 1; } if(BizzInfo[i][bLocked] == 0) { BizzInfo[i][bLocked] = 1; GameTextForPlayer(playerid, "~w~Bussiness ~r~Closed", 5000, 6); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); return 1; } } else { GameTextForPlayer(playerid, "~r~You Dont Have A Key", 5000, 6); return 1; } } } for(new i = 0; i < sizeof(SBizzInfo); i++) { if (PlayerToPoint(3, playerid,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ])) { if(PlayerInfo[playerid][pPbiskey] == i+100) { if(SBizzInfo[i][sbLocked] == 1) { SBizzInfo[i][sbLocked] = 0; GameTextForPlayer(playerid, "~w~Bussiness ~g~Open", 5000, 6); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); return 1; } if(SBizzInfo[i][sbLocked] == 0) { SBizzInfo[i][sbLocked] = 1; GameTextForPlayer(playerid, "~w~Bussiness ~r~Closed", 5000, 6); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); return 1; } } else { GameTextForPlayer(playerid, "~r~You Dont Have A Key", 5000, 6); return 1; } } } } return 1; }
  21. adauga o verificare la comanda unde e forul pentru house, la else dupa acest mesaj GameTextForPlayer(playerid, "~r~You Dont Have A Key", 5000, 6); adauga asa new str22[120]; format(str22,120,"Hosue owned by %s id %d, player house %d si %d",HouseInfo[h][hOwner], h, PlayerInfo[playerid][pPhousekey],PlayerInfo[ReturnUser(HouseInfo[h][hOwner])][pPhousekey]); SendClientMessage(playerid,-1,str22);
  22. nu trebuie sa adaugi ci sa inlocuiesti am spus clar inlocuiest asta cu asta, Esti sigur ca primesti mesajul you don't have a key?
  23. tu ce vrei mai exact sa faci acesta este un stock, ai o problema la conectare? Daca nu ai nume rp adica cu _ iti da kick sau ceva de genul? Daca da atunci ca sa nu ne arati sute si linii de code si erori modifica stockul cu asta stock IsPlayerNameCorrect(const name[]) { /*new bool:Symbol; if(name[0] < 'A' || name[0] > 'Z') return 0; for(new A = 1; A < strlen(name); A++) { if(name[A] == '_') { if(Symbol || name[A+1] < 'A' || name[A+1] > 'Z') return 0; Symbol = true; A += 2; continue; } if(name[A] < 'a' || name[A] > 'z') return 0; } if(!Symbol) return 0;*/ return 1; }
  24. modifica din asta for(new i = 0; i < sizeof(HouseInfo); i++) { if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]) || PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]) || HouseInfo[i][hVW] == GetPlayerVirtualWorld(playerid)) { if(PlayerInfo[playerid][pPhousekey] == i) { in asta for(new i = 0; i < sizeof(HouseInfo); i++) { if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]) || PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]) || HouseInfo[i][hVW] == GetPlayerVirtualWorld(playerid)) { if(PlayerInfo[playerid][pPhousekey] == i) {
  25. Respecta modelul T.C.
×
×
  • 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.