09.12.2011, 16:51
Try this
pawn Код:
CMD:vspawn(playerid,params[])
{
new
Float:PosX,Float:PosY,Float:PosZ,Float:PosA,
vehid,
vehiclez
;
if(sscanf(params,"i",vehid)) return SendClientMessage(playerid,COLOR_WHITE,"** Format ** /vspawn [vehid]");
else if(vehid < 400 || vehid > 611) return SendClientMessage(playerid,COLOR_WHITE,"Vehicle ID's range from 400-611.");
else
{
GetPlayerFacingAngle(playerid,PosA);
GetPlayerPos(playerid,PosX,PosY,PosZ);
vehiclez = CreateVehicle(vehid,x,y,z,a,-1,-1,5000);
PutPlayerInVehicle(playerid,vehiclez,0);
}
return 1;
}