Jump to content

IcE.

Membru
  • Posts

    1.094
  • Joined

  • Last visited

Everything posted by IcE.

  1. [pawn]new rand = random(sizeof(gMedicSpawns));[/pawn]
  2. Cauta in gm [pawn]if(PlayerInfo[playerid][pReg] == 0)[/pawn] si vei gasi acolo.
  3. Intra in include foreach si adauga la inceput #define _FOREACH_LOCAL_VERSION 2
  4. [pawn] else if(strcmp(x_nr,"plate",true) == 0) { if(PlayerInfo[playerid][pPcarkey1] == 999 && PlayerInfo[playerid][pPcarkey2] == 999) { SendClientMessage(playerid, COLOR_GREY,"Nu e masina ta."); return 1; } if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey1] || PlayerInfo[playerid][pPcarkey2]) { new Float:x,Float:y,Float:z,Float:ang; GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z); GetVehicleZAngle(GetPlayerVehicleID(playerid),ang); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"You're not in a vehicle!"); new str[1028]; format(str,1024,"{00CC66}Scrieti in cauta numarul de inmatriculare dorit!\n\n"); format(str,1024,"%s"color_red"ATENTIE!\n",str); format(str,1024,"%s"wh"Fara numbere gen: "color_green"Maria, Cezar, Vlad, etc\n\n",str); format(str,1024,"%s\t\t\t\t"color_red"PRZ"color_blue"RolyPlay",str); ShowPlayerDialog(playerid,171,DIALOG_STYLE_INPUT,"{EE7777}Plate Car", str ,"Yes","Cancel"); return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You are not in you're personal car!"); return 1; } } [/pawn] [pawn] if(dialogid == 171) { if(response) { new Float:x,Float:y,Float:z,Float:ang; new idcar = GetPlayerVehicleID(playerid); SetVehicleNumberPlate(GetPlayerVehicleID(playerid), inputtext); GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z); GetVehicleZAngle(GetPlayerVehicleID(playerid),ang); SetVehicleToRespawn(GetPlayerVehicleID(playerid)); SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z); SetVehicleZAngle(GetPlayerVehicleID(playerid),ang); strmid(CarInfo[idcar][cLicense], inputtext, 0, strlen(inputtext), 999); OnPropUpdate(); } else { } } [/pawn] Titlu.
  5. Baga include asta http://forum.sa-mp.com/showthread.php?t=292813 [pawn]#include <fixes>[/pawn]
  6. IcE.

    Problema Tow

    Nam inteles ce vrei. Vrei sa se parcheze masina care e "atarnata" de masina de TOW ?
  7. Arata functia GivePlayerMoneyGR
  8. [pawn]new checks = PlayerInfo[pPayCheck] / 5;[/pawn] Inlocuie cu : [pawn]new checks = PlayerInfo[pPayCheck] / 7;//in loc de 7 pui tu cat vrei[/pawn]
  9. Arata tot callbaku PayDay(..) si til fac eu :)
  10. Dupa ce pui culoarea pe masina (/v color) dai /v park ;)
  11. [pawn] STR1 = AddStaticVehicleEx(560,1362.50000000,-1658.59997559,13.19999981,1,1,600); //Sultan STR2 = AddStaticVehicleEx(411,1362.30004883,-1650.80004883,13.19999981,1,1,600); //Infernus STR3 = AddStaticVehicleEx(451,1362.59997559,-1643.09997559,13.10000038,1,1,600); //Turismo STR4 = AddStaticVehicleEx(541,1362.19995117,-1635.40002441,13.10000038,1,1,600); //Bullet STR5 = AddStaticVehicleEx(560,1382.90002441,-1658.59997559,13.30000019,1,1,600); //Sultan STR6 = AddStaticVehicleEx(560,1382.69995117,-1667.00000000,13.19999981,1,1,600); //Sultan STR7 = AddStaticVehicleEx(560,1366.30004883,-1680.80004883,13.30000019,1,1,600); //Sultan STR8 = AddStaticVehicleEx(541,1360.69995117,-1680.40002441,13.30000019,1,1,600); //Bullet STR9 = AddStaticVehicleEx(559,1355.40002441,-1680.59997559,13.39999962,1,1,600); //Jester [/pawn]
  12. Mutale pe AddStaticVehicleEx, deoarece la CreateVehicle nu poti sa folosesti cu STR9/ STR1.
  13. [pawn]native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0);//dar trebuie sa le modifici pe rand.[/pawn]
  14. Si atunci ce vrei sa iti spunem? Cum sa scapi de flood ? Hosteazal, sau daca vrei sa il ti pe PC, bagati linux.
  15. Nu.
  16. Ce comanda? Si nu mai fa 2x post.
  17. [pawn] public SetPlayerToTeamColor(playerid) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == iidf) { SetPlayerColor(playerid, culoarea); } //Cop if(PlayerInfo[playerid][pLeader] == idf) { SetPlayerColor(playerid,culoarea); } //Cop } } [/pawn] Si culoarea la masni. http://wiki.sa-mp.com/wiki/AddStaticVehicleEx http://wiki.sa-mp.com/wiki/Color_ID
  18. Cu grija. Noi te-am raspuns la prima intrebare.
  19. [pawn]format(string,sizeof(string),"Price: %s",CarInfo[newcar][cValue]);[/pawn] Inlocuie cu : [pawn]format(string,sizeof(string),"Price: %d",CarInfo[newcar][cValue]);[/pawn]
  20. Te-am dat un pm cu tutorialu. Nu postez ca sa nu fac reclama.
  21. [pawn] for(new h = 271; h < sizeof(CarInfo); h++)//inlocuie 271 cu ce id vrei tu { AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000); LoadTuningCar(h); }[/pawn]
  22. La tine probabil returneaza 1 si daia nu merg comenzile din GM. Cauta in fs-uri OnPlayerCommandText si punel sa returneze 0 .
  23. IcE.

    Erori.

    Nu ai acele functi implementate. LOCK titlu.
  24. IcE.

    Intrebare

    1.Titlu. 2.Nu suntem forum de MTA. 3.Poti sa pui, daca creezi un obiect nou.
  25. Titlu. Til poti face singur in 10 minute.
×
×
  • 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.