Multiple gamemodes - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Multiple gamemodes (
/showthread.php?tid=133043)
Multiple gamemodes -
Ironboy500 - 10.03.2010
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?
Re: Multiple gamemodes -
KnightRiderUGP - 10.03.2012
Wouldnt it be better to have the command in the admin filterscript?
Re: Multiple gamemodes -
CAR - 10.03.2012
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!");