SA-MP Forums Archive
Define Admin in filter-script - 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: Define Admin in filter-script (/showthread.php?tid=375466)



Define Admin in filter-script - UnknownGamer - 07.09.2012

Код:
if (PlayerInfo[playerid][pAdmin] >= 5) { // My code }
I have included pAdmin in the enum pInfo, and MAX_PLAYERS Define, but still not working?

Can someone explain how to define the admin-level from ravens in a filter-script, I'm stuck.


Re: Define Admin in filter-script - Kitten - 07.09.2012

Using PVars i guess?


Re : Define Admin in filter-script - ricardo178 - 07.09.2012

Something like:

pawn Код:
enum pInfo
{
    pAdmin,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
P.S. Raven's Role-Play will fail for sure... Give up before you waste your money with hosting.