16.05.2012, 01:47
Code:
if (strcmp("/tune", cmdtext, true, 10) == 0) { if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1, "You are not an admin!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Your car has not been tuned as you're not in one."); TuneVehicleRandomly(GetPlayerVehicleID(playerid)); return SendClientMessage(playerid,-1,"Your car has been tuned."); } return 0; }