06.01.2013, 03:22
Or you can use PVars.
They are specific variables which can be set to a player and are NOT related to a specific script.
For example, in the gamemode if you do SetPVarInt(playerid, "Money", GetPlayerMoney(playerid));
In the filterscript you can do GetPVarInt(playerid, money);
It will return the same value as you set it in the gamemode.
For more info, look here - https://sampwiki.blast.hk/wiki/Per-player_variable_system
They are specific variables which can be set to a player and are NOT related to a specific script.
For example, in the gamemode if you do SetPVarInt(playerid, "Money", GetPlayerMoney(playerid));
In the filterscript you can do GetPVarInt(playerid, money);
It will return the same value as you set it in the gamemode.
For more info, look here - https://sampwiki.blast.hk/wiki/Per-player_variable_system