26.02.2014, 15:43
pawn Код:
CMD:givecar(playerid, params[])
{
new vid, Float:X, Float:Y, Float:Z, Float:Angle, targetid;
if(sscanf(params,"d", targetid, vid)) return SendClientMessage(playerid, 0x9C9C9CAA,"Syntax: /car [playerid] [vehicleid]");
if(vid < 400 || vid > 611) return SendClientMessage(playerid,0xFF0000AA,"Invalid Vehicle ID (400 - 611)");
GetPlayerPos(targetid, X, Y, Z);
GetPlayerFacingAngle(targetid, Angle);
PutPlayerInVehicle(targetid, CreateVehicle(vid, X, Y, Z, Angle, 0, 1, 60), 0);
return 1;
}