17.06.2012, 07:07
pawn Код:
CMD:vehicle(playerid,params[])
{
new veh = GetPlayerVehicleID(playerid);
new Float:x, Float:y, Float:z, Float:a;
if(sscanf(params,"i",veh)) return SCM(playerid,COLOR_RED,"[USAGE] /Vehicle [Vehicle ID]");
if(veh < 400 || veh > 611) return SCM(playerid,COLOR_RED,"[ERROR] Invalid Vehicle ID");
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
new veh1 = CreateVehicle(veh,x+2,y,z,a,-1,-1,-1);
return 1;
}