[Code needed] Faction rank exception for /heal.
#3

First of all, it's 'Bump', not Dump -.-.

And don't bump after for like 2 hours.

Try looking at your script, specifically, at the pInfo enum.
It clearly hold a value named 'pLeader'.

So, just put this at the beginning of the code:

pawn Код:
if(PlayerInfo[playerid][pLeader] == 1)
{
     // Your code
}
else
{
    SendClientMessage(playerid, 0x00FF0000, "you're not a faction leader!");
    return 1;
}
return 1;
Reply


Messages In This Thread
[Code needed] Faction rank exception for /heal. - by Da' J' - 03.09.2011, 13:34
Re: [Code needed] Faction rank exception for /heal. - by Da' J' - 03.09.2011, 15:48
Re: [Code needed] Faction rank exception for /heal. - by judothijs - 03.09.2011, 16:04
Re: [Code needed] Faction rank exception for /heal. - by Da' J' - 03.09.2011, 17:33
Re: [Code needed] Faction rank exception for /heal. - by Da' J' - 04.09.2011, 17:42

Forum Jump:


Users browsing this thread: 1 Guest(s)