Control Structure
#7

PHP код:
CMD:configfaction(playeridparams[])
{
    if(!
PlayerData[playerid][pFaction])
        return 
SendClientMessage(playeridCOLOR_ADM"ERROR: You aren't in a faction.");
    if(
PlayerData[playerid][pFactionRank] > FactionData[PlayerData[playerid][pFaction]][factionEditrank])
        return 
SendClientMessage(playeridCOLOR_ADM"ACCESS DENIED:{FFFFFF} Your rank doesn't have permission to do this.");
        if(
PlayerData[playerid][pAdmin] < 5) return SendClientMessage(playeridCOLOR_ADM"ACCESS DENIED:{FFFFFF} Your rank doesn't have permission to do this. ADMIN");
    
ShowYourFactionMenu(playerid);
    return 
1;

try this.
Reply


Messages In This Thread
Control Structure - by Jing_Chan - 22.06.2018, 14:50
Re: Control Structure - by GTLS - 22.06.2018, 14:55
Re: Control Structure - by Jing_Chan - 22.06.2018, 15:00
Re: Control Structure - by Exhibit - 22.06.2018, 15:03
Re: Control Structure - by Mike861 - 22.06.2018, 15:05
Re: Control Structure - by Jing_Chan - 22.06.2018, 15:09
Re: Control Structure - by Exhibit - 22.06.2018, 15:19
Re: Control Structure - by jasperschellekens - 22.06.2018, 15:21
Re: Control Structure - by Jing_Chan - 22.06.2018, 15:27
Re: Control Structure - by GTLS - 24.06.2018, 09:44

Forum Jump:


Users browsing this thread: 2 Guest(s)