Car spawn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Car spawn (
/showthread.php?tid=352280)
Car spawn -
CrazyChoco - 19.06.2012
How can i do it like when you type a cmd you will spawn a car beside the player?
Re: Car spawn -
[MM]RoXoR[FS] - 19.06.2012
pawn Код:
if (strcmp("/car", cmdtext, true, 10) == 0)
{
new Float:x,Float:y,Float:z,Float:a;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
CreateVehicle(522,x+1,y,z,a,-1,-1);
return 1;
}
Re: Car spawn -
Torus - 19.06.2012
Quote:
Originally Posted by [MM]RoXoR[FS]
pawn Код:
if (strcmp("/car", cmdtext, true, 10) == 0) { new Float:x,Float:y,Float:z,Float:a; GetPlayerPos(playerid,x,y,z); GetPlayerFacingAngle(playerid,a); AddStaticVehicle(522,x+1,y,z,a,-1,-1); return 1; }
|
AddStaticVehicle(522,x+1,y,z,a,-1,-1);

?
Shouldnt be this
CreateVehicle?!
Re: Car spawn -
Audi_Quattrix - 19.06.2012
I vote for Create vehicle
Re: Car spawn -
[MM]RoXoR[FS] - 19.06.2012
My bad ..
Edited my post