Multiple gamemodes
#1

Hello! need little help!

I am working on my Red vs Blue server and multiple gamemods. I wanted to make admin command /next in every gamemode. But my problem is I need to check if players is admin. In my admin FS I have defined AdminLevel of each player

Код:
enum PlayerInfo
{
	Registered,
	AdminLevel,
	logged,
	Jailed,
	Muted,
	Warnings,
	Frozen,
	Kills,
	Deaths,
	Online,
	Duty
};
How to check from gamemode in filterscript plasyer's Admin Level?
Reply
#2

Wouldnt it be better to have the command in the admin filterscript?
Reply
#3

pawn Код:
enum PlayerInfo
{
    Registered,
    AdminLevel,
    logged,
    Jailed,
    Muted,
    Warnings,
    Frozen,
    Kills,
    Deaths,
    Online,
    Duty
};
new pInfo[MAX_PLAYERS][PlayerInfo];
and then:
pawn Код:
if(!pInfo[playerid][AdminLevel]) return SendClientMessage(playerid, 0xFF0000FF, "You are not an admin!");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)