01.03.2014, 15:05
pawn Код:
CMD:car(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 4 || IsPlayerAdmin(playerid))
{
new vid, Float:X, Float:Y, Float:Z, Float:Angle, col1, col2;
if(sscanf(params,"d", vid)) return SendClientMessage(playerid, COLOR_GREY,"Syntax /car [vehicleid] [vcol1] [vcol2]");
if(vid < 400 || vid > 611) return SendClientMessage(playerid,COLOR_RED,"Invalid Vehicle ID (400 - 611)");
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
CreateVehicle(vid, X, Y, Z, Angle, col1, col2, 60);
}
else SendClientMessage(playerid,COLOR_RED,"You do not have the right admin permissions for this command!");
return 1;
}