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