Filterscript
#4

You can put it in a function, like
Код:
forward IsAFK( playerid );
public IsAFK( playerid )
    return IsAfk[ playerid ];
And in GM you can use it like
Код:
CallRemoteFunction( "IsAFK", "i", playerid );
To set it's value from GM you can do this:
Код:
forward SetAFK( playerid, value );
public SetAFK( playerid, value )
    return IsAfk[ playerid ] = value;
And in GM you can use it like
Код:
CallRemoteFunction( "SetAFK", "ii", playerid, 1 );
But it's easier with PVars.
Reply


Messages In This Thread
Filterscript - by CoDeZ - 31.07.2012, 13:15
Re: Filterscript - by Littlehelper - 31.07.2012, 13:18
Re: Filterscript - by CoDeZ - 31.07.2012, 13:27
Re: Filterscript - by IstuntmanI - 31.07.2012, 14:11

Forum Jump:


Users browsing this thread: 1 Guest(s)