02.09.2012, 06:44
This is so
pawn Код:
CMD:acar(playerid,params[])
{
if(pInfo[playerid][pAdmin] >=3)
{
new vehicleID,color1,color2;
if(sscanf(params,"ddd",vehicleID,color1,color2)) return SendClientMessage(playerid,COLOR_GREY,"Usage: /acar [Vehicle ID] [Color 1] [Color 2]");
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateVehicle(vehicleID,X,Y,Z,90,color1,color2,0);
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use this command.");
}
return 1;
}