02.09.2012, 17:38
Код:
CMD:acar(playerid,params[]) { if(IsPlayerAdmin(playerid)) { 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; }