Jump to content

ToX1c

Membru
  • Posts

    245
  • Joined

  • Last visited

    Never

Everything posted by ToX1c

  1. if(strcmp(cmd, "/setskin", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "UTILIZARE: /setskin [ Name / Id ] [skin model]"); return 1; } new playa; new health; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); health = strval(tmp); if(health > 299 || health < 1) { SendClientMessage(playerid, COLOR_GREY, "Wrong skin ID!"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 4) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { new name[20]; new victim[20]; GetPlayerName(playerid, name, sizeof(name)); GetPlayerName(playa, victim, sizeof(victim)); PlayerInfo[playa][pModel] = health; PlayerInfo[playa][pChar] = health; SetPlayerSkin(playa, PlayerInfo[playa][pChar]); format(string, 128, "AdmWarning: %s has set %s's skin to %d.", sendername,giveplayer,health); ABroadCast(COLOR_YELLOW,string,1); format(string, 128, "{FFFFFF}%s{32CBFF} has set {FFFFFF}%s{32CBFF}'s hp to {FFFFFF}%d{32CBFF}.", sendername,giveplayer,health); SendClientMessage(playa,COLOR_YELLOW,string); } } } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu ai level-ul de admin suficient pentru a folosi aceasta comanda."); } } return 1; }
  2. if(strcmp(cmd, "/factions", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_WHITE, " {9ACD32}|_________________________________Faction List________________________________|"); SendClientMessage(playerid, COLOR_WHITE, "Gouvernamental : {2641FE}(ID:1)PoliceDepartament , (ID:2)F.B.I , (ID:3)NationalGuard."); SendClientMessage(playerid, COLOR_WHITE, "Mafia: {FF9900} (ID:5)La Cosa Nostra , {33AA33}(ID:6)Yakuza."); SendClientMessage(playerid, COLOR_WHITE, "Gangs:{003C7B} (ID:12)Crips , {FFA8D3}(ID:13)Bloods, {9CFFFE}(ID:14)Surenos , {FFC801}(ID:15)Nortenos."); SendClientMessage(playerid, COLOR_WHITE, "State Factions : {FF6347} (ID:4)Medics/Fireman , {FFFF00}(ID:10)Taxi Company , {00D7D7}(ID:11)SchoolInstructor , {A6A6D2}(ID:9)NewsReporter."); SendClientMessage(playerid, COLOR_WHITE, "Private Factions : {A63232}(ID:8)Hitman."); SendClientMessage(playerid, COLOR_LIGHTRED, "Mai multe detalii pe /forum ! "); SendClientMessage(playerid, COLOR_WHITE, " {9ACD32}|_______________________________________________________________________________|"); } return 1; } schimbi si u factiunile.
  3. Uitati scriptul daca este nevoie http://pastebin.com/nGkzuh3S
  4. Salut am si eu o problema la comanda /createcar nu pot sa o folosesc sa creez masina personala if (strcmp(cmd, "/createcar", true) ==0 ) { if(!IsPlayerAdmin(playerid)){return 1;} tmp = strtok(cmdtext,idx); if(!strlen(tmp)){return 1;} new vehiclemodel = strval(tmp); tmp = strtok(cmdtext,idx); if(!strlen(tmp)){return 1;} new color1 = strval(tmp); tmp = strtok(cmdtext,idx); if(!strlen(tmp)){return 1;} new color2 = strval(tmp); tmp = strtok(cmdtext,idx); if(!strlen(tmp)){return 1;} new price = strval(tmp); new Float:px,Float:py,Float:pz,Float:pa; GetPlayerPos(playerid,px,py,pz); GetPlayerFacingAngle(playerid,pa); Created++; VehicleSystem[Created][model]=vehiclemodel; VehicleSystem[Created][x]=px; VehicleSystem[Created][y]=py; VehicleSystem[Created][z]=pz; VehicleSystem[Created][a]=pa; VehicleSystem[Created][Farbe1]=color1; VehicleSystem[Created][Farbe2]=color2; VehicleSystem[Created][preis]=price; VehicleSystem[Created][owned]=0; strmid(VehicleSystem[Created][owner],"dealervehicle",0,128,128); new ccar = CreateVehicle(VehicleSystem[Created][model],VehicleSystem[Created][x],VehicleSystem[Created][y],VehicleSystem[Created][z],VehicleSystem[Created][a],VehicleSystem[Created][Farbe1],VehicleSystem[Created][Farbe2],600000); IDIS[ccar]=Created; SaveTool(); return 1; } Mai am o problema tot in legatura cu masinile pers, cand intra oricine pe server toate masinile sunt blocate si in sistemul de masini personale nu am lock nu am /v lock sau altceva sa inchida masina.Ce pot sa fac sa le deblochez asa am in vehicle.cfg veh_model_1=411 veh_owned_1=0 veh_x_1=1558.484497 veh_y_1=-1011.746948 veh_z_1=23.633331 veh_a_1=180.351669 veh_Farbe1_1=1 veh_Farbe2_1=79 veh_owner_1=dealervehicle veh_preis_1=1000000 veh_mod1_1=0 veh_mod2_1=0 veh_mod3_1=0 veh_mod4_1=0 veh_mod5_1=0 veh_mod6_1=0 veh_mod7_1=0 veh_mod8_1=0 veh_mod9_1=0 veh_mod10_1=0 veh_mod11_1=0 veh_mod12_1=0 veh_mod13_1=0 veh_mod14_1=0 veh_mod15_1=0 veh_mod16_1=0 veh_mod17_1=0 veh_paint_1=0
  5. ToX1c

    Problema

    Am rezolvat In loc de Cash:[$%d] Bank:[$%d] Trebuie Cash:[$%s] Bank:[$%s]
  6. ToX1c

    Problema

    Apare cand dau /stats imi apare la bani in mana 49 si eu am 500k si in banca tot asa..
  7. ToX1c

    Problema

    Tot nu merge format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,FormatNumber(cash),FormatNumber(account),pnumber);
  8. ToX1c

    Problema

    Salut am facut si eu la server chestia cu puncte la bani sa apare asa 20.000.000 si nu merge private GroupDigit(number) { /* Example: printf("%s",GroupDigit(-59032); Will print: -59.032 */ new cmoney[18]; new bool:signed = false; if(number < 0) { number = -number; signed = true; } format(cmoney,sizeof(cmoney),"%d",number); switch(strlen(cmoney)) { case 4: strins(cmoney,".",1); // 2.000$ case 5: strins(cmoney,".",2); // 20.000$ case 6: strins(cmoney,".",3); // 200.000$ case 7: { strins(cmoney,".",1); strins(cmoney,".",5); } // 2.000.000$ case 8: { strins(cmoney,".",2); strins(cmoney,".",6); } // 20.000.000$ case 9: { strins(cmoney,".",3); strins(cmoney,".",7); } // 200.000.000$ case 10: { strins(cmoney,".",1); strins(cmoney,".",5); strins(cmoney,".",9); } // 2.000.000.000$ case 11: { strins(cmoney,".",2); strins(cmoney,".",6); strins(cmoney,".",10); } // 20.000.000.000$ case 12: { strins(cmoney,".",3); strins(cmoney,".",7); strins(cmoney,".",11); } // 200.000.000.000$ } if(signed) strins(cmoney,"-",0); return cmoney; } Am pus asa sa apara la status si nu apare , apare 49$ si eu 500k in banca. format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,GroupDigit(cash),GroupDigit(account),pnumber);
  9. ToX1c

    Problema

    Poate sa-mi zice si mie cineva cum rezolv?
  10. ToX1c

    Eroare Comanda

    if(strcmp(cmd, "/veh", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] < 1337) { SendClientMessage(playerid, COLOR_GRAD1, "Nu ai level-ul de admin suficient pentru a folosi aceasta comanda."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "UTILIZARE: /veh [carid] [color1] [color2]"); return 1; } new car; car = strval(tmp); if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "Vehicle Number can't be below 400 or above 611 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 || color1 > 172) { SendClientMessage(playerid, COLOR_GREY, "Color Number can't be below 0 or above 172 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "Color Number can't be below 0 or above 126 !"); return 1; } new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 60000); format(string, sizeof(string), "Vehicle %d spawned.", carid); SendClientMessage(playerid, COLOR_GREY, string); } return 1; } Incearca comanda asta.
  11. ToX1c

    Problema

    Am JunkBuster , ce pot sa fac sa mearga si cu junkbuster?
  12. ToX1c

    Problema

    Salut am o problema la fast event , scriu textul imi da banii dar dupa mi ia la loc ,imi ia bani care mi a dat ca am castigat fast eventul http://pastebin.com/cswZMATG
  13. ToX1c

    Fast Event

    Nu vezi ce am scris?
  14. ToX1c

    Fast Event

    Imi da si mie cineva un ajutor va rog frumos.
  15. ToX1c

    Fast Event

    Salut am o problema la fast event , scriu textul imi da banii dar dupa mi ia la loc ,imi ia bani care mi a dat ca am castigat fast eventul http://pastebin.com/cswZMATG
  16. ToX1c

    Fast Event

    Salut , care imi poate spune si mie cum fac un fast event , vreau sa fac din 5 in 5 minute sa apara mesajul cu fast event care scrie primul cuvantul sa castige?
  17. ToX1c

    Problema

    //-------------------------------------players--------------------------------------------------------------- if(strcmp(cmdtext, "/players off", true) == 0) { if(IsPlayerConnected(playerid)) { PlayersStats[playerid] = 0; SendClientMessage(playerid, 0xF6F6F6FF,"Ai dezactivat optiunea de afisare a numarului de jucatori online."); TextDrawHideForPlayer(playerid,Pplayers); } } if(strcmp(cmdtext, "/players on", true) == 0) { if(IsPlayerConnected(playerid)) { PlayersStats[playerid] = 1; SendClientMessage(playerid, 0xF6F6F6FF,"Ai activat optiunea de afisare a numarului de jucatori online."); TextDrawShowForPlayer(playerid,Pplayers); } } Am rezolvat rock , ms pentru ajutor.
  18. ToX1c

    Problema

    Salut am si eu o problema la comanda daca dau /players on imi apare Ai activat optiunea de afisare a numarului de jucatori online. da dupa imi scrie server: unknown command. cum fac sa numai imi scrie server: unknown command.
  19. ToX1c

    Problema

    Ma scuzati de dublu post Am rezolvat.
  20. ToX1c

    Problema

    Salut am si eu o problema la streamer nu mi se vad obiectele am facut tot ce trebuie.. am stremerul http://forum.sa-mp.com/showthread.php?t=102865 am facut update la include am compilat gm-ul si degeaba.
  21. ToX1c

    Problema Banii

    Inainte sa bag antihack-ul asta nu facea asa uitete mai sus..
  22. ToX1c

    Problema Banii

    stock ResetPlayerCash(playerid) { Cash[playerid] = 0; ResetMoneyBar(playerid);//Resets the money in the original moneybar, Do not remove! UpdateMoneyBar(playerid,Cash[playerid]);//Sets the money in the moneybar to the serverside cash, Do not remove! return Cash[playerid]; }
  23. Salut am si eu o problema la server , daca ies si intru iar pe server imi cresc bani mi se dubleaza banii.. o fi de la public OnPlayerConnect(playerid) { ResetPlayerCash(playerid); am asta la onplayerconnect
  24. Salut am vrut sa fac si eu cand dau /gevent sa apara numele la adminul care a pornit eventu si cand dau /gevent imi apare numele la primul player adica la playerul cu id - 0 cum fac sa apara adminul care a dat. if(strcmp(cmd, "/gevent", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1 && (gevent == 0) || PlayerInfo[playerid][pHelper] >= 2 && (gevent == 0) || IsPlayerAdmin(playerid) && (gevent == 0)) { gevent = 1; GetPlayerName(playerid, Name, sizeof(Name)); format(string, 256, "{6EF83C}[Mini Event]: Event cu Grenade activat de adminul {FFFFFF} %s ! {6EF83C}(/joingevent) ", giveplayer, sendername, Name); return SendClientMessageToAll(COLOR_GREY, string); } else if (PlayerInfo[playerid][pAdmin] >= 1 && (gevent == 1) || PlayerInfo[playerid][pHelper] >= 2 && (gevent == 1) || IsPlayerAdmin(playerid) && (gevent == 1)) { gevent = 0; new playa; GetPlayerName(playa, giveplayer, sizeof(giveplayer)); format(string, 256, "{6EF83C}[Mini Event]: Event dezactivat de adminul {FFFFFF} %s ! ", giveplayer, sendername, Name); return SendClientMessageToAll(COLOR_GREY, string); } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda !"); } } return 1; }
×
×
  • 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.