26.10.2012, 20:50
Код:
dcmd_rnos(playerid, params[]) { #pragma unused params if(IsRegularPlayer[playerid] != 1337) return SendClientMessage(playerid,COLOR_ORANGE,"[AeroBot]: You Are Not A Regular Player"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED, "[ERROR]You must be in a car to use this command."); switch(GetVehicleModel( GetPlayerVehicleID(playerid) )) { case 448,461,462,463,468,471,509,510,521,522,523,581,586,449: return SendClientMessage(playerid,COLOR_RED,"[ERROR]You cannot add nitro into this car!"); } AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); SendClientMessage(playerid, COLOR_GREY, "You have succesfully added nitrous into your car."); return 1; }