Good Feature, But only for admins...
#1

Ok so, i just got this Ironman FS which alows you to fly and stuf
But i only want it for admins, im currently using L-Admin(Lethal Admin)Filterscript..
I tryed to get the Ironman code to L-Admin but pwno crashed everytime i tryed to compile it...
Has anybody a suggestion about making some rule that only lv5 admins can use the command /ironman?
Regards.
Reply
#2

err... maybe about the function (not command) :
Код:
 if(IsPlayerAdmin(playerid) == 5)
Reply
#3

If it's in Ladmin it should be like this.

Код:
if(PlayerInfo[playerid][Level] >= 5)
{
   The command
}
Reply
#4

Checking if a player is an admin comes later, if you can't transfer the [FS] Iron Man into [FS] L Admin, you can search the forum. Someone asked the exact same question before so you'd get your answer, about your script crashing, there.
Reply
#5

Checking if a player is an admin comes after executing the cmd, so put the cmd code first then inside it put
if players admin lvl >=5
execute code
else
sendclientmessage "you are not an admin!"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)