Filterscript working with gamemode
#1

Hello everyone!
Well, how can i add a filterscript working with gamemode. like i want to remove IsPlayerAdmin (in filterscript) and put the one (e.g: PlayerInfo) who in gamemode.
Reply
#2

Reading that information is impossible unless you read some data from the user file
Reply
#3

Quote:
Originally Posted by Matz
Посмотреть сообщение
Reading that information is impossible unless you read some data from the user file
then how can i take the user info?
Reply
#4

Usually I implement the filterscript inside the gamemode, but it needs time and errors fix
Reply
#5

There are couple of methods like CallRemoteFunction, properties, SVars, GVar plugin etc.

This is an example:
pawn Код:
// <filterscript>
#define GetPlayerAdmin(%0) CallRemoteFunction("GM_GetPlayerAdmin", "i", %0)

// <gamemode>
forward GM_GetPlayerAdmin(playerid);
public GM_GetPlayerAdmin(playerid) return PlayerInfo[playerid][pAdmin];
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)