19.06.2012, 08:00
How can i do it like when you type a cmd you will spawn a car beside the player?
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;
}
pawn Код:
|