Jump to content

Papana

Membru
  • Posts

    334
  • Joined

  • Last visited

    Never

Everything posted by Papana

  1. 10/10 A iesit foarte bine,testat merge Dar,la o versiune noua mai aduaga intrebari. Oricum cine vrea sa adauge nu cred ca i e asa greu ... Ce idee ti-as da sa faci : Fai un fel de duel intre 2 playeriii cu intrebari dar asta ar fi cam greu ...
  2. porblema poate sa fie la orice plugin audio Radio sscanf streamer xStremer etc :grin:
  3. Papana

    AudioStream

    o uploadezi aici http://www.fileden.com/dashboard.php si apoi o sati dea un site cu .mp3 la sfarsit
  4. am si io la comanda /buygun dar nu am cu playertopoint e cu pLocal cum aflu acel Location ??? am facut un gunshop nou si trb sa fac si buygun la el ... Ammunation1 1 286.148986,-40.644397,1001.515625
  5. deci am niste comenzi dar la ele nu gasesc pLeader sau pMember ( [pawn] if(strcmp(cmd, "/fmats", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsAMember(playerid)) { new x; x = PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader]; if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, " You need to be Rank 3 or Higher for this action !"); return 1; } /*if(DynamicFactions[x][fSafe] <= 0) { SCM(playerid, COLOR_WHITE, "The leader must buy a SAFE first !"); return 1; }*/ new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ])) { format(string, sizeof(string), "Faction Mats: $%d.", DynamicFactions[x][fMats]); SCM(playerid, COLOR_WHITE, string); } SCM(playerid, COLOR_WHITE, "|________________________fMats_________________________|"); SCM(playerid, COLOR_WHITE, "| USAGE: /fmats [name] [ammount]"); SCM(playerid, COLOR_GREY, " | Available names: Take , Put"); SCM(playerid, COLOR_WHITE, "|______________________________________________________|"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, playername, sizeof(playername)); if(strcmp(x_nr,"take",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[uSAGE:] /fmats take [amount]"); return 1; } new materialsdeposit = strval(tmp); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[uSAGE:] /fmats take [amount]"); return 1; } if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ])) { if(materialsdeposit <=DynamicFactions[x][fMats]) { PlayerInfo[playerid][pMats] += materialsdeposit; DynamicFactions[x][fMats]=DynamicFactions[x][fMats]-materialsdeposit; format(string, sizeof(string), "You have taken %d mats from the storage facility, Materials Total: %d ", materialsdeposit,DynamicFactions[x][fMats]); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s has just taken %d mats from the faction storage facility.",sendername,materialsdeposit); SendFamilyMessage(x, TEAM_AZTECAS_COLOR, string); SaveDynamicFactions(); return 1; } else { SCM(playerid, COLOR_GREY, "There isn't that much mats in storage!"); } } else { SCM(playerid, COLOR_GREY , "You are not at the faction storage facility!"); } } else if(strcmp(x_nr,"put",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[uSAGE:] /fmats put [amount]"); return 1; } new materialsdeposit = strval(tmp); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[uSAGE:] /fmats put [amount]"); return 1; } if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ])) { if(materialsdeposit <= PlayerInfo[playerid][pMats]) { PlayerInfo[playerid][pMats] =PlayerInfo[playerid][pMats]-materialsdeposit; DynamicFactions[x][fMats] +=materialsdeposit; format(string, sizeof(string), "You putted %d mats from the storage facility, Materials Total: %d ", materialsdeposit,DynamicFactions[x][fMats]); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s has just putted %d mats from the faction storage facility.",sendername,materialsdeposit); SendFamilyMessage(x, TEAM_AZTECAS_COLOR, string); SaveDynamicFactions(); return 1; } else { SCM(playerid, COLOR_GREY, "You don't have that much mats on you!"); } } else { SCM(playerid, COLOR_GREY, "You are not at the faction storage facility!"); } } else { SCM(playerid, COLOR_GREY, "Unknown fMats name !"); return 1; } } else { SCM(playerid, COLOR_GREY, "You are not a gang member !"); return 1; } } return 1; } if(strcmp(cmd, "/fdrugs", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsAMember(playerid)) { new x; x = PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader]; /*if(DynamicFactions[x][fSafe] <= 0) { SCM(playerid, COLOR_WHITE, "The leader must buy a SAFE first !"); return 1; }*/ new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { if (PlayerToPoint(30.0, playerid,-2159.122802,641.517517,1052.381713) || PlayerToPoint(30.0, playerid,2324.419921,-1145.568359,1050.710083) || PlayerToPoint(30.0, playerid,1277.9442,-837.3730,1085.6328) || PlayerToPoint(30.0, playerid,1710.433715,-1669.379272,20.225049) || PlayerToPoint(30.0, playerid,942.171997,-16.542755,1000.929687) || PlayerToPoint(30.0, playerid,964.106994,-53.205497,1001.124572)) { format(string, sizeof(string), "Faction Drugs: $%d.", DynamicFactions[x][fDrugs]); SCM(playerid, COLOR_WHITE, string); } SCM(playerid, COLOR_WHITE, "|______________________FactionsDrugs___________________|"); SCM(playerid, COLOR_WHITE, "| USAGE: /fdrugs [name] [ammount]"); SCM(playerid, COLOR_GREY, " | Available names: Take , Put"); SCM(playerid, COLOR_WHITE, "|______________________________________________________|"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, playername, sizeof(playername)); if(strcmp(x_nr,"take",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[uSAGE:] /fdrugs take [amount]"); return 1; } new materialsdeposit = strval(tmp); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[uSAGE:] /fdrugs take [amount]"); return 1; } if (PlayerToPoint(30.0, playerid,-2159.122802,641.517517,1052.381713) || PlayerToPoint(30.0, playerid,2324.419921,-1145.568359,1050.710083) || PlayerToPoint(30.0, playerid,1277.9442,-837.3730,1085.6328) || PlayerToPoint(30.0, playerid,1710.433715,-1669.379272,20.225049) || PlayerToPoint(30.0, playerid,942.171997,-16.542755,1000.929687) || PlayerToPoint(30.0, playerid,964.106994,-53.205497,1001.124572)) { if(materialsdeposit <=DynamicFactions[x][fDrugs]) { PlayerInfo[playerid][pDrugs] += materialsdeposit; DynamicFactions[x][fDrugs]=DynamicFactions[x][fDrugs]-materialsdeposit; format(string, sizeof(string), "You have taken %d drugs from the storage facility, Drugs Total: %d ", materialsdeposit,DynamicFactions[x][fDrugs]); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s has just taken %d drugs from the faction storage facility.",sendername,materialsdeposit); SendFamilyMessage(x, TEAM_AZTECAS_COLOR, string); SaveDynamicFactions(); return 1; } else { SCM(playerid, COLOR_GREY, "There isn't that much drugs in storage!"); } } else { SCM(playerid, COLOR_GREY , "You are not at the faction storage facility!"); } } else if(strcmp(x_nr,"put",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[uSAGE:] /fdrugs put [amount]"); return 1; } new materialsdeposit = strval(tmp); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[uSAGE:] /fdrugs put [amount]"); return 1; } if (PlayerToPoint(30.0, playerid,-2159.122802,641.517517,1052.381713) || PlayerToPoint(30.0, playerid,2324.419921,-1145.568359,1050.710083) || PlayerToPoint(30.0, playerid,1277.9442,-837.3730,1085.6328) || PlayerToPoint(30.0, playerid,1710.433715,-1669.379272,20.225049) || PlayerToPoint(30.0, playerid,942.171997,-16.542755,1000.929687) || PlayerToPoint(30.0, playerid,964.106994,-53.205497,1001.124572)) { if(materialsdeposit <= PlayerInfo[playerid][pDrugs]) { PlayerInfo[playerid][pDrugs] =PlayerInfo[playerid][pDrugs]-materialsdeposit; DynamicFactions[x][fDrugs] +=materialsdeposit; format(string, sizeof(string), "You putted %d drugs from the storage facility, Drugs Total: %d ", materialsdeposit,DynamicFactions[x][fDrugs]); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s has just putted %d drugs from the faction storage facility.",sendername,materialsdeposit); SendFamilyMessage(x, TEAM_AZTECAS_COLOR, string); SaveDynamicFactions(); return 1; } else { SCM(playerid, COLOR_GREY, "You don't have that much drugs on you!"); } } else { SCM(playerid, COLOR_GREY, "You are not at the faction storage facility!"); } } else { SCM(playerid, COLOR_GREY, "Unknown fDrugs name !"); return 1; } } else { SCM(playerid, COLOR_GREY, "You are not a gang member !"); return 1; } } return 1; } if(strcmp(cmd, "/fbalance", true) == 0) { if(IsAMember(playerid)) { if (PlayerToPoint(30.0, playerid,-2159.122802,641.517517,1052.381713) || PlayerToPoint(30.0, playerid,2324.419921,-1145.568359,1050.710083) || PlayerToPoint(30.0, playerid,1277.9442,-837.3730,1085.6328) || PlayerToPoint(30.0, playerid,1710.433715,-1669.379272,20.225049) || PlayerToPoint(30.0, playerid,942.171997,-16.542755,1000.929687) || PlayerToPoint(30.0, playerid,964.106994,-53.205497,1001.124572)) { format(string, sizeof(string), " You Have $%d in your hq.",PlayerInfo[playerid][pAccf]); SendClientMessage(playerid, COLOR_YELLOW, string); } } return 1; } if(strcmp(cmd, "/fdeposit", true) == 0) { if(IsAMember(playerid)) { if (PlayerToPoint(30.0, playerid,-2159.122802,641.517517,1052.381713) || PlayerToPoint(30.0, playerid,2324.419921,-1145.568359,1050.710083) || PlayerToPoint(30.0, playerid,1277.9442,-837.3730,1085.6328) || PlayerToPoint(30.0, playerid,1710.433715,-1669.379272,20.225049) || PlayerToPoint(30.0, playerid,942.171997,-16.542755,1000.929687) || PlayerToPoint(30.0, playerid,964.106994,-53.205497,1001.124572)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fdeposit [amount]"); format(string, sizeof(string), " You Have $%d in your hq.", PlayerInfo[playerid][pAccf]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } new cashdeposit = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fdeposit [amount]"); format(string, sizeof(string), " You Have $%d in your hq.", PlayerInfo[playerid][pAccf]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1) { SendClientMessage(playerid, COLOR_GRAD2, " You dont have that much"); return 1; } GivePlayerMoney(playerid,-cashdeposit); new curfunds = PlayerInfo[playerid][pAccf]; PlayerInfo[playerid][pAccf]=cashdeposit+PlayerInfo[playerid][pAccf]; SendClientMessage(playerid, COLOR_WHITE, "|___ SAFE BOX ___|"); format(string, sizeof(string), " Old Balance: $%d", curfunds); SendClientMessage(playerid, COLOR_GRAD2, string); format(string, sizeof(string), " Deposit: $%d",cashdeposit); SendClientMessage(playerid, COLOR_GRAD4, string); SendClientMessage(playerid, COLOR_GRAD6, "|-----------------|"); format(string, sizeof(string), " New Balance: $%d", PlayerInfo[playerid][pAccf]); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } } return 1; } if(strcmp(cmd, "/fwithdraw", true) == 0) { if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pLeader] == 19) { if (PlayerToPoint(30.0, playerid,-2159.122802,641.517517,1052.381713) || PlayerToPoint(30.0, playerid,2324.419921,-1145.568359,1050.710083) || PlayerToPoint(30.0, playerid,1277.9442,-837.3730,1085.6328) || PlayerToPoint(30.0, playerid,1710.433715,-1669.379272,20.225049) || PlayerToPoint(30.0, playerid,942.171997,-16.542755,1000.929687) || PlayerToPoint(30.0, playerid,964.106994,-53.205497,1001.124572)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fwithdraw [amount]"); format(string, sizeof(string), " You Have $%d in your hq.", PlayerInfo[playerid][pAccf]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } new cashdeposit = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fwithdraw [amount]"); format(string, sizeof(string), " You Have $%d in your hq.", PlayerInfo[playerid][pAccf]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if (cashdeposit > PlayerInfo[playerid][pAccf] || cashdeposit < 1) { SendClientMessage(playerid, COLOR_GRAD2, " You dont have that much !"); return 1; } //ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid,cashdeposit); PlayerInfo[playerid][pAccf]=PlayerInfo[playerid][pAccf]-cashdeposit; format(string, sizeof(string), " You Have Withdrawn $%d from your hq Total: $%d ", cashdeposit,PlayerInfo[playerid][pAccf]); SendClientMessage(playerid, COLOR_YELLOW, string); return 1; } } return 1; } [/pawn] acelea fmats si fdrugs ma intereseaza mult .. /fwithdraw o pot face dar restu nu stiu cum (
  6. cum fac biz si sbiz ,am sistem tot intregat gm un biz: 0|The State|~w~Gun Shop 1|No-one|1791.212036|-1164.631713|23.828100|2170.278076|1618.818237|999.976623|5|5000000|2000|84500|0|1|88|500|100 si un sbiz: [pawn]0|The State|~r~24~y~/~b~7|No-one|1205.971557|-1459.673706|13.385993|5|5000000|5000|1840|1|0|100|100|100 [/pawn] vreau sa-mi spuneti care e locatia de la enter care e de la exit care e interioru etc ,multumesc :)
  7. poate nu ai pluginurile compatibile cu linux EDIT: uite iti dau io ce am folosit si mergeau ... sscanf.so : http://solidfiles.com/d/fa286ebd0e/ streamer.so : http://solidfiles.com/d/7d9c1d81a7/
  8. vreau si io sa fac la niste comenzi anti reclame dar nu mai stiu cum :| [pawn] if(strcmp(cmd, "/pm", true) == 0 || strcmp(cmd, "/w", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/p)me [playerid/PartOfName] [text]"); return 1; } giveplayerid = ReturnUser(tmp); if (IsPlayerConnected(giveplayerid)) { { if(giveplayerid != INVALID_PLAYER_ID) { if(HidePM[giveplayerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " That player is blocking messages!"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); if(giveplayerid == playerid) { format(string, sizeof(string), "* %s mutters something to himself.", sendername); ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } 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: (/p)me [playerid/PartOfName] [text]"); return 1; } format(string, sizeof(string), "[iD:%d] %s pm: %s", playerid, sendername, (result)); SendClientMessage(giveplayerid, 0xBBA033AA, string); format(string, sizeof(string), "PM sent to [iD:%d]%s: %s", giveplayerid, giveplayer, (result)); SendClientMessage(playerid, 0xE5C43EAA, string); format(string, sizeof(string), "%s pm to %s: %s", sendername, giveplayer, (result)); PmLog(string); return 1; } } } } return 1; }[/pawn]
  9. frumos... darky cum ai facut acele comenzi cu papagal si restu ca sunt mai multe :-?
  10. deci stiu ca pe 0.3d sa implemetat balonu cu aer si vreau si io sa stiu ce id are sau ? vreua sa-l fac ca pe masina personala :grin: :grin: si ce sa ma implementat pe acolo niste lucruri ceva unde sa le aflu
  11. nu vreau sa fac la fel ca tine,vreau ceva diferit :grin:
  12. la primu sendlientmesage ai uitat sa deschizi o {
  13. poate ai vazut ca e aici un sistem cu 4 level si acolo intro poza are un fel de dialog fara butoane sau astea ... chiar acolo unde e chatu si io vreau sa fac ceva de genu ala :)
  14. pai si astea [pawn]LinkVehicleToInterior(prcar1, 15);//15 int-u unde vrei tu sa le bagi (/int) LinkVehicleToInterior(prcar2, 15); LinkVehicleToInterior(prcar3, 15);[/pawn] le pun la ongamemodelnit sau le pun la /enter la hq ?
  15. am vauzt la unii ca folosesc un program cu care fac textdrawu nu doar text asa pe ecran textdraw care ramane cum face si dialog si ramane mereu .. mi-l da si mie cineva ?? am cautat si nu am gasit :@:@
  16. mi-l poti da si mie,te rog nu stiu sa fac textdraw...
  17. MULTUMESC,A MERS NU MAI DA ERORI
  18. io vreau sa fac la factiunea people racing niste masini ,am un interior mare la hq si acolo vreau sa pun masinile ... multumesc,o sa revin cu un edit daca merge ...
  19. Frumos,mai multe comenzi... si incearca sa faci comenzi tot in dialoguri ... imi zici si mie cum ai facut aia cu chatbox ? :grin:
  20. deci mam uitat peste acest tutorial http://wiki.sa-mp.com/wiki/InteriorCars dar nu am inteles ceva unde pun : [pawn]LinkVehicleToInterior(bloodring1, 15);[/pawn] si [pawn]SetVehicleVirtualWorld(bloodring1, 15);[/pawn]
  21. am incercat sa fac comanda /help pe dialog si imi da erori D:\Diverse\Gamemode sa-mp\roleplay by papana ls and lv\gamemodes\roleplay.pwn(38885) : error 001: expected token: "-string end-", but found "-identifier-" D:\Diverse\Gamemode sa-mp\roleplay by papana ls and lv\gamemodes\roleplay.pwn(38885) : warning 215: expression has no effect D:\Diverse\Gamemode sa-mp\roleplay by papana ls and lv\gamemodes\roleplay.pwn(38885) : error 001: expected token: ";", but found "-string-" D:\Diverse\Gamemode sa-mp\roleplay by papana ls and lv\gamemodes\roleplay.pwn(38885) : warning 215: expression has no effect D:\Diverse\Gamemode sa-mp\roleplay by papana ls and lv\gamemodes\roleplay.pwn(38885) : error 001: expected token: "-string end-", but found "-identifier-" D:\Diverse\Gamemode sa-mp\roleplay by papana ls and lv\gamemodes\roleplay.pwn(38885) : fatal error 107: too many error messages on one line ce am la on dialog response [pawn] } //============================================================================== //|ONDIALOGRESPONSE: /help //============================================================================== if(dialogid == 6000) { if(response) { if(listitem==0)//ACCOUNT { SendClientMessage(playerid, COLOR_GRAD1,"[1]***/rules /stats /changepass /levelup /upgrade"); } if(listitem==1)//GENERAL { SendClientMessage(playerid, COLOR_GRAD1,"[2]*** /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /opendoor(/od)"); SendClientMessage(playerid, COLOR_GRAD2,"[2]*** /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /askq /animlist /stopanim /fuel"); SendClientMessage(playerid, COLOR_GRAD2,"[2]*** (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /afk /radioonline"); SendClientMessage(playerid, COLOR_GRAD3,"[2]*** (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke /aratabuletin"); } if(listitem==2)//CHAT { SendClientMessage(playerid, COLOR_GRAD3,"[3]*** (/p)me (/cw)hisper (/o)oc (/s)hout /low (/b) (/f)action /me /do /togooc /tognews /togfam /togpm /togphone"); } if(listitem==3)//BANK { SendClientMessage(playerid, COLOR_GRAD4,"[4]*** /balance /withdraw /deposit /wiretransfer"); } if(listitem==4)//OTHER { SendClientMessage(playerid, COLOR_GRAD6,"[5]*** /cellphonehelp /househelp /vehiclehelp /renthelp /businesshelp /leaderhelp /fishhelp /cookhelp /irchelp"); } if(listitem==5)//FACTIONS { if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1) { SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted (/cu)ff (/ta)zer /undercover /backup(/bk)"); SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: /frisk /friskinv /take /ticket (/gov)ernment /deliver /ram /swat /authorizeswat /deauthorizeswat /drag /copuntie"); SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: /backupclear(/bkc) /roadblock(/rb) /roadunblock(/rrb) /roadunblockall(/rrball) /showbadge /tracelastcall(/tlc) /weplicense"); } if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2) { SendClientMessage(playerid, COLOR_YELLOW2, ":: FBI :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted (/cu)ff (/ta)zer /agent /showid /friskinv"); SendClientMessage(playerid, COLOR_YELLOW2, ":: FBI :: /frisk /take /ticket (/gov)ernment /deliver /ram /drag /copuntie /authorizetactical /deauthorizetactical /tactical"); } if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3) { SendClientMessage(playerid, COLOR_YELLOW2, ":: Military :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /wanted (/cu)ff (/ta)zer"); SendClientMessage(playerid, COLOR_YELLOW2, ":: Military :: /frisk /friskinv /take /ticket (/gov)ernment /deliver /ram /drag /copuntie"); } if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8) { SendClientMessage(playerid, COLOR_YELLOW2, ":: HITMAN :: /portable"); } if (gTeam[playerid] == 1 || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { SendClientMessage(playerid, COLOR_YELLOW2, ":: SAMD :: (/r)adio (/d)epartments /heal /duty /tracelastcall(/tlc)"); } } if(listitem==6)//JOB { if(PlayerInfo[playerid][pJob] == 1) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /find"); } else if(PlayerInfo[playerid][pJob] == 2) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /free"); } else if(PlayerInfo[playerid][pJob] == 3) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /sex"); } else if(PlayerInfo[playerid][pJob] == 4) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /selldrugs"); } else if(PlayerInfo[playerid][pJob] == 5) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /dropcar"); } else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /paper /papers /live /news [text]"); } else if(PlayerInfo[playerid][pJob] == 7) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /repair /refill /duty"); } else if(PlayerInfo[playerid][pJob] == 8) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /guard"); } else if(PlayerInfo[playerid][pJob] == 9) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /sellgun"); } else if(PlayerInfo[playerid][pJob] == 10) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /sellcar"); } else if(PlayerInfo[playerid][pJob] == 11) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /heal"); } else if(PlayerInfo[playerid][pJob] == 12) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /fight /boxstats"); } else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10|| PlayerInfo[playerid][pJob] == 14) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /fare"); } else if(PlayerInfo[playerid][pJob] == 15) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /papers /bring /deliver"); } else if(PlayerInfo[playerid][pJob] == 16) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /buyprods /sellprods /load"); } else if(PlayerInfo[playerid][pJob] == 17) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /duty /sellpizza"); } else if(PlayerInfo[playerid][pJob] == 18) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /startharvest /stopharvest"); } else if(PlayerInfo[playerid][pJob] == 19) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /startdrugharvest /stopdrugharvest"); } else if(PlayerInfo[playerid][pJob] == 20) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /smuggledrugs /selldrugsto"); } else if(PlayerInfo[playerid][pJob] == 21) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /startsweep /stopsweep"); } else if(PlayerInfo[playerid][pJob] == 22) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /smugglemats"); } else if(PlayerInfo[playerid][pJob] == 23) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /creategun /buymats"); } } if(listitem==7)//ADMIN { if (PlayerInfo[playerid][pAdmin] >= 1) { SendClientMessage(playerid, COLOR_YELLOW, ":: ADMIN :: (/a)dmin (/ah)elp"); } } } } //============================================================================== //|ONDIALOGRESPONSE: JAIL - BAR - /drinks //==============================================================================[/pawn] comanda /help [pawn]if(strcmp(cmd, "/help", true) == 0) { if(IsPlayerConnected(playerid)) { ShowPlayerDialog(playerid,6000,DIALOG_STYLE_LIST,""color_cyan"HELP",""color_red"[1]"wh"ACCOUNT\n"color_red"[2]"wh"GENERAL\n"color_red"[3]"wh"CHAT\n"color_red"[4]"wh"BANK\n"color_red"[5]"wh"OTHER\n"color_red"[6]"wh"FACTION\n"color_red"[7]"wh"JOB\n"color_red"[8]"wh"ADMIN","Alege","Iesi"); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); } return 1; }[/pawn]
  22. ete ce e pe la liniile alea [pawn]public split(const strsrc[], strdest[][], delimiter) { new i, li; new aNum; new len; while(i <= strlen(strsrc)){ if(strsrc==delimiter || i==strlen(strsrc)){ len = strmid(strdest[aNum], strsrc, li, i, 128); strdest[aNum][len] = 0; li = i+1; aNum++; } i++; } return 1; } public OnPlayerRegister(playerid, password[]) { if(IsPlayerConnected(playerid)) { new string3[64]; new playername3[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername3, sizeof(playername3)); format(string3, sizeof(string3), "users/%s.ini", playername3); new File: hFile = fopen(string3, io_write); if (hFile) { strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255); new var[64]; format(var, 64, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var); PlayerInfo[playerid][pCash] = GetPlayerCash(playerid); format(var, 64, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var); format(var, 64, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var); format(var, 64, "VipLevel=%d\n",PlayerInfo[playerid][pVip]);fwrite(hFile, var); format(var, 64, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var); format(var, 64, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var); format(var, 64, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var); format(var, 64, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var); format(var, 64, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var); format(var, 64, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var); format(var, 64, "Age=%d\n",PlayerInfo[playerid] );fwrite(hFile, var); format(var, 64, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var); format(var, 64, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var); format(var, 64, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var); format(var, 64, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var); format(var, 64, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var); format(var, 64, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var); format(var, 64, "Banks=%d\n",PlayerInfo[playerid][pAccf]);fwrite(hFile, var); format(var, 64, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var); format(var, 64, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var); format(var, 64, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var); format(var, 64, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var); format(var, 64, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var); format(var, 64, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var); format(var, 64, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var); format(var, 64, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var); format(var, 64, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var); format(var, 64, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var); format(var, 64, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var); format(var, 64, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var); format(var, 64, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var); format(var, 64, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var); format(var, 64, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var); format(var, 64, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var); format(var, 64, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var); format(var, 64, "ClanLeader=%d\n",PlayerInfo[playerid][pCLeader]);fwrite(hFile, var); format(var, 64, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var); format(var, 64, "ClanMember=%d\n",PlayerInfo[playerid][pCMember]);fwrite(hFile, var); format(var, 64, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var); format(var, 64, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var); format(var, 64, "cRank=%d\n",PlayerInfo[playerid][pCRank]);fwrite(hFile, var); format(var, 64, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var); format(var, 64, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var); format(var, 64, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var); format(var, 64, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var); format(var, 64, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var); format(var, 64, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var); format(var, 64, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var); format(var, 64, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var); format(var, 64, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var); format(var, 64, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var); format(var, 64, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var); format(var, 64, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var); format(var, 64, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var); format(var, 64, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var); GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]); format(var, 64, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var); format(var, 64, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var); format(var, 64, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var); format(var, 64, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var); format(var, 64, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var); format(var, 64, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var); format(var, 64, "Car=%d\n",PlayerInfo[playerid][pPcarkey]);fwrite(hFile, var); format(var, 64, "Heli=%d\n",PlayerInfo[playerid][pPhelikey]);fwrite(hFile, var); format(var, 64, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var); format(var, 64, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var); format(var, 64, "Punish=%d\n",PlayerInfo[playerid][pPunish]);fwrite(hFile, var); format(var, 64, "RobSkill=%d\n",PlayerInfo[playerid][pRobSkill]);fwrite(hFile, var); format(var, 64, "Rob=%d\n",PlayerInfo[playerid][pRob]);fwrite(hFile, var); if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0)) { PlayerInfo[playerid][pPos_x] = 1684.9; PlayerInfo[playerid][pPos_y] = -2244.5; PlayerInfo[playerid][pPos_z] = 13.5; } if(Spectate[playerid] != 255) { PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx]; PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy]; PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz]; PlayerInfo[playerid][pInt] = Unspec[playerid][sPint]; PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal]; } format(var, 64, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var); format(var, 64, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var); format(var, 64, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var); format(var, 64, "Tow=%d\n",PlayerInfo[playerid][pTow]);fwrite(hFile, var); format(var, 64, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var); format(var, 64, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var); format(var, 64, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var); format(var, 64, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var); format(var, 64, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var); format(var, 64, "Passport=%d\n",PlayerInfo[playerid][pPassport]);fwrite(hFile, var); format(var, 64, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var); format(var, 64, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var); format(var, 64, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var); format(var, 64, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var); format(var, 64, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var); format(var, 64, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var); format(var, 64, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var); format(var, 64, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var); format(var, 64, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var); format(var, 64, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var); format(var, 64, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var); format(var, 64, "Watch=%d\n",PlayerInfo[playerid][pWatch]);fwrite(hFile, var); format(var, 64, "Crashed=%d\n",PlayerInfo[playerid][pCrashed]);fwrite(hFile, var); format(var, 64, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var); format(var, 64, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var); format(var, 64, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var); format(var, 64, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var); format(var, 64, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var); format(var, 64, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var); format(var, 64, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var); format(var, 64, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var); format(var, 64, "Mission=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var); format(var, 64, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var); format(var, 64, "Fwarn=%d\n",PlayerInfo[playerid][pFwarn]);fwrite(hFile, var); format(var, 64, "VirWorld=%d\n",PlayerInfo[playerid][pVirWorld]);fwrite(hFile, var); format(var, 64, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var); format(var, 64, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var); format(var, 64, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var); format(var, 64, "FishTool=%d\n",PlayerInfo[playerid][pFishTool]);fwrite(hFile, var); format(var, 64, "Note1=%s\n",PlayerInfo[playerid][pNote1]);fwrite(hFile, var); format(var, 64, "Note1s=%d\n",PlayerInfo[playerid][pNote1s]);fwrite(hFile, var); format(var, 64, "Note2=%s\n",PlayerInfo[playerid][pNote2]);fwrite(hFile, var); format(var, 64, "Note2s=%d\n",PlayerInfo[playerid][pNote2s]);fwrite(hFile, var); format(var, 64, "Note3=%s\n",PlayerInfo[playerid][pNote3]);fwrite(hFile, var); format(var, 64, "Note3s=%d\n",PlayerInfo[playerid][pNote3s]);fwrite(hFile, var); format(var, 64, "Note4=%s\n",PlayerInfo[playerid][pNote4]);fwrite(hFile, var); format(var, 64, "Note4s=%d\n",PlayerInfo[playerid][pNote4s]);fwrite(hFile, var); format(var, 64, "Note5=%s\n",PlayerInfo[playerid][pNote5]);fwrite(hFile, var); format(var, 64, "Note5s=%d\n",PlayerInfo[playerid][pNote5s]);fwrite(hFile, var); format(var, 64, "InvWeapon=%d\n",PlayerInfo[playerid][pInvWeapon]);fwrite(hFile, var); format(var, 64, "InvAmmo=%d\n",PlayerInfo[playerid][pInvAmmo]);fwrite(hFile, var); format(var, 64, "Lighter=%d\n",PlayerInfo[playerid][pLighter]);fwrite(hFile, var); format(var, 64, "Cigarettes=%d\n",PlayerInfo[playerid][pCigarettes]);fwrite(hFile, var); format(var, 64, "Locked=%d\n",PlayerInfo[playerid][pLocked]);fwrite(hFile, var); format(var, 64, "WantedLevel=%d\n",WantedLevel[playerid]);fwrite(hFile, var); format(var, 64, "WantedPoint=%d\n",WantedPoints[playerid]);fwrite(hFile, var); fclose(hFile); new loginstring[128]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"{FFFFFF}Welcome, {FFAF00}%s\n{FFFFFF}You can now login:",loginname); ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit"); } } return 1; }[/pawn] si e in regula ...
×
×
  • 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.