pInfo in filterscript
#10

Just make some functions in your gamemode to return admin level for example.

pawn Код:
forward GetAdminLevel(playerid);
public GetAdminLevel(playerid) { return PlayerInfo[playerid][pAdmin]; }
Now make an include file to be used with filterscripts

pawn Код:
#define GetAdminLevel(%0) CallRemoteFunction("GetAdminLevel", "i", %0)
Now you can use GetAdminLevel(playerid) in your filterscripts. However keep in mind you rarely should need a filterscript in a public server so chances are your better off using callback hooking and compiling into the gamemode its self.
Reply


Messages In This Thread
pInfo in filterscript - by mrxqware - 12.01.2014, 15:07
Re: pInfo in filterscript - by Mattakil - 12.01.2014, 15:09
Re: pInfo in filterscript - by SilentSoul - 12.01.2014, 15:12
Re: pInfo in filterscript - by mrxqware - 12.01.2014, 17:23
Re: pInfo in filterscript - by mrxqware - 12.01.2014, 19:28
Re: pInfo in filterscript - by xZdadyZx - 12.01.2014, 19:34
Re: pInfo in filterscript - by mrxqware - 12.01.2014, 21:13
Re: pInfo in filterscript - by mrxqware - 13.01.2014, 08:51
Re: pInfo in filterscript - by mrxqware - 13.01.2014, 13:29
Re: pInfo in filterscript - by Pottus - 13.01.2014, 13:37

Forum Jump:


Users browsing this thread: 3 Guest(s)