just small code/fix
#3

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
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;
}
Reply


Messages In This Thread
!-Solved-! !-Thanks-! - by Joe_Goro - 17.11.2013, 06:51
Re: just small code/fix - by Pottus - 17.11.2013, 06:57
Re: just small code/fix - by Joe_Goro - 17.11.2013, 07:01
Re: just small code/fix - by Pottus - 17.11.2013, 07:02
Re: just small code/fix - by Joe_Goro - 17.11.2013, 07:06
Solved - Working - by Joe_Goro - 17.11.2013, 07:20

Forum Jump:


Users browsing this thread: 1 Guest(s)