17.11.2013, 07:01
hmm there is a define in the script for admin level thats not the problem that problem is its still working while offduty my code must stop at " you cant do that while off duty " understand me ?
also another thing how to make cutter rims ? here is my gold rims
also another thing how to make cutter rims ? here is my gold rims
pawn Код:
CMD:goldrims(playerid, params[])
{
if(IsPlayerConnected(playerid)) {
if(PlayerInfo[playerid][pAdmin] < 2) {
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
return 1;
}
if(!IsPlayerInAnyVehicle(playerid)) {
return SendClientMessageEx(playerid, COLOR_GRAD2, "You must be in a car to add Gold Rims.");
}
if(IsPlayerInAnyVehicle(playerid)) {
AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
SendClientMessageEx(playerid, COLOR_WHITE, "Gold Rims Added to Vehicle!");
}
}
return 1;
}