23.06.2015, 16:06
In case you have tested it in OnFilterScriptInit, it wouldn't work - you'd have to delay it.
It works good.
pawn Код:
// <filterscript>
#define SetPlayerWhatever(%0,%1) CallRemoteFunction("GM_SetPlayerWhatever", "ii", %0, %1)
// an example setting the value to 10 for that playerid somewhere in filterscript:
SetPlayerWhatever(playerid, 10);
// <gamemode>
// global:
new whatever[MAX_PLAYERS];
forward GM_SetPlayerWhatever(playerid, value);
public GM_SetPlayerWhatever(playerid, value)
{
whatever[playerid] = value;
}