09.12.2011, 17:06
pawn Код:
CMD:vspawn(playerid,params[])
{
new
Float:x,Float:y,Float:z,Float:a,vehid,vehicle;
if(sscanf(params,"d",vehid)) return SendClientMessage(playerid,COLOR_WHITE,"** Format ** /vspawn [vehid]");
if(vehid < 400 || vehid > 611) return SendClientMessage(playerid,COLOR_WHITE,"Vehicle ID's range from 400-611.");
GetPlayerFacingAngle(playerid,a);
GetPlayerPos(playerid,x,y,z);
vehicle = CreateVehicle(vehid,x,y,z,a,-1,-1,5000);
PutPlayerInVehicle(playerid,vehicle,0);
return 1;
}