Jump to content

gunskill

Membru
  • Posts

    257
  • Joined

  • Last visited

    Never

Everything posted by gunskill

  1. [pawn] if(strcmp(cmd, "/ticket", true) == 0) { if(IsPlayerConnected(playerid)) { if(gTeam[playerid] != 2) { SendClientMessage(playerid, COLOR_GREY, " You are not a Cop!"); return 1; } if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1) { SendClientMessage(playerid, COLOR_GREY, " You are not on Duty!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ticket [playerid/PartOfName] [price] [reason]"); return 1; } giveplayerid = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ticket [playerid/PartOfName] [price] [reason]"); return 1; } moneys = strval(tmp); if(moneys < 1 || moneys > 10000) { SendClientMessage(playerid, COLOR_GREY, " Ticket Money can't be below 1 or higher then 10000 !"); return 1; } if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ticket [playerid/PartOfName] [price] [reason]"); return 1; } format(string, sizeof(string), "* You gave %s a Ticket costing $%d, reason: %s", giveplayer, moneys, (result)); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Officer %s has given you a Ticket costing $%d, reason: %s", sendername, moneys, (result)); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Type /accept ticket, to accept it."); TicketOffer[giveplayerid] = playerid; TicketMoney[giveplayerid] = moneys; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " That player is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " That player is Offline !"); return 1; } } return 1; }[/pawn] Asta e accept ticket! Deci nu merge,daca dau rr cu gmx merge da nu mai merge ceasul si altele si dau rr din host,si dupa nu mai merg. Ce sa fac?
  2. Folosesc zanaroth textdraw editor versiunea 1.0(ultima) Si acum vine problema,la toate dialogurile nu numai cele de la fs asta daca apas close go bck cancel etc...imi da kick am cautat kick(player id) si mam asigurat ca nu e pe undeva,ce sa fac?
  3. In ce sa-l schimb? Am cautat crede-ma nu e nici macar acest cuvant in FS.
  4. Folosesc zanaroth textdraw editor versiunea 1.0(ultima) Si acum vine problema,la toate dialogurile nu numai cele de la fs asta daca apas close go bck cancel etc...imi da kick am cautat kick(player id) si mam asigurat ca nu e pe undeva,ce sa fac?
  5. Ai uitat o } Aduti aminte ce ai editat ultima oara sau apasa ctrl+z si apoi f5!
  6. gunskill

    cerere

    1)Nu se ce scripturi 2)Cuteste Regulamentu 3)Incearca si Search : http://forum.sa-mp.com/showthread.php?t=207889
  7. Nu cred ca se poate pe 0.3c Incearca 0.3d!
  8. Da celalat topic facut de tine....http://forum.sa-mp.com/showthread.php?p=1399384#post1399384
  9. Te ajut eu,vezi ca iti dau PM cu id meu! O sa iti explic acolo cum si ce..
  10. #define UpdateConfig 500 mareste 500 in mai mult,cred ca asta e,incearca
  11. Mai,daca e warning intelege,1 nu te afeteaza cu nimic! Daca e ERROR specifica naibii calumea,sau nu mai posta!
  12. ia citeste ce a scris in primu post [pawn]EROARE: C:\Documents and Settings\Calin1996\My Documents\a2viata.pwn(4198) : warning 208: function with tag result used before definition, forcing reparse[/pawn]
  13. gunskill

    Scanf2

    #include <sscanf2> sus de tot sau pune includele in pawno/includes http://pastebin.com/CphRMEnA
  14. Vezi ca ai butonu "Modify" nu ai voie dublu-post,dapai triplu!
  15. Pawno aici : http://www.girlshare.ro/2890551.4 Amx aici : http://www.girlshare.ro/2890552.5 Iti lipseste includele <CPLoader> Uite-l aici : http://pastebin.com/rHiuXDuK
  16. Am nevoie de ajutor ma chinui de 2 zile sa bag din realchat in dialog asta : si sa arate asa : Ma puteti ajuta?Stiu ca nu se cer scripturi da nu imi iese :|
  17. Am o problema la dialoguri.Cand dai close sau back sau cancel etc, iti da kick,cum rezolv ,inafara de faza sa las doar un singur buton :)
  18. Cum pun negrul ala sus si jos?(fondul ala negru) Am postat aici pentru ca la Probleme GF nu a raspuns nimeni!
  19. gunskill

    /free

    Am nevoie de ajutor cu o comanda /free ptr lawyeri. Dar nu ceea normala,as vrea sa nu te mai scoata mereu,adica cateodata sa te scoata si cate odata nu + sa ii da bani lawyerului Am incercat singur , dar nu m-am descurcat
  20. gunskill

    Auto-Afk

    nici mie nu imi merge
  21. gunskill

    /park

    asta nu e problema,e un script banuiesc
  22. gunskill

    /park

    am incercat sa fac dupa modelul car ownership al lui roach sa iau comanda /park (/v park) si sa o pun la mine in gm sa fie doar ptr cei care au maina personala (de aia facuta cu new nume si cordonatele) Am incercat sa pun in loc de pKeys sa pun pOwned dar nu reusesc,daca ma puteti ajuta...multumesc(oricum daca reusesc tot ii pastrez creditee)
  23. Salut am o problema! Daca am o comanda care are un meniu, dau de exemplu "/comanda" si trb sa se deschida meniul la mine in pc merge si pe host nu merge! Si mai am o problema la /accept job dau / job <jobul> imi pune cp pe mapa ma duc la cp dau join si dupa imi apare sa dau /accept job,dau si nu se intampla nimic..
  24. http://wiki.sa-mp.com/wiki/Stocks
  25. gunskill

    porti pd

    [pawn]public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (newkeys==KEY_FIRE) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pJob] == 16) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(10, playerid,1588.1082,-1634.5288,13.3828) || PlayerToPoint(10, playerid,1588.6952,-1640.6711,13.1626)) { MoveObject(gatepd, 1598.268677, -1638.331177, 13.752552, 4.0); SendClientMessage(playerid, COLOR_LIGHTRED, "*The gate of LSPD has been opened and close in 5 second(s)."); SetTimer("gatepdclose",3500, false); return 1; } } } } if (newkeys==KEY_FIRE) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(10, playerid,1538.7560,-1628.0847,13.3828) || PlayerToPoint(10, playerid,1545.9342,-1627.7917,13.3828)) { MoveObject(vamapd, 1542.350098, -1627.757568, 19.731131, 4.0); SendClientMessage(playerid, COLOR_LIGHTRED, "*The gate of LSPD has been opened and close in 5 second(s)."); SetTimer("vamapdclose",3500, false); return 1; } } } }[/pawn] Si pune asta in loc de bariera CreateObject(3749, 1544.160278, -1627.761597, 18.241226, 0.0000, 0.0000, 270.0000);//Poarta mare lspd
×
×
  • 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.