19.01.2014, 08:15
Hello! So,what i want to make is a system that will remove from the shop the nos,so no car can have it,but also to make a command for admins to mount it.Thanks! +rep.
if(strcmp(cmd, "/nos", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] < 1337) { SendClientMessage(playerid, COLOR_LIGHTGREEN, " You are not authorized to use that command! !"); return 1; } if(IsPlayerInAnyVehicle(playerid)) { AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); SendClientMessage(playerid, COLOR_LIGHTGREEN, "Nos installed from car!"); } } return 1; }