Jump to content

Question

Posted

am si eu un script care prin comanda /apark pot parca orice masina doresc problema e urmatoarea cand sunt in masina si dau /apark imi apare doar mesajul masina a fost parcata as vrea ca pe langa aces mesaj sa se distruga automat masina si sa apara in locul ales de mine :) ca si cum as da eu /rac

[pawn] if (strcmp("/apark", cmdtext, true, 10) == 0)

{

if(!IsPlayerInAnyVehicle(playerid)){return 1;}

if(GetCreatorID(vehicleid)!=0)

{

new Float:vx,Float:vy,Float:vz,Float:va;

GetVehiclePos(GetPlayerVehicleID(playerid),vx,vy,vz);

GetVehicleZAngle(GetPlayerVehicleID(playerid),va);

VehicleSystem[GetCreatorID(vehicleid)][x]=vx;

VehicleSystem[GetCreatorID(vehicleid)][y]=vy;

VehicleSystem[GetCreatorID(vehicleid)][z]=vz;

VehicleSystem[GetCreatorID(vehicleid)][a]=va;

SendClientMessage(playerid,WHITE,"Masina Parcata Cu Succes!");

SaveTool();

DestroyVehicle(carid);

LoadComponents(thiscar);

}

else

{

SendClientMessage(playerid,WHITE," Nu poti parca aceasta masina!");

}

return 1;

}[/pawn]

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • 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.