14.01.2010, 03:15
Simplest way I can think of is to use CallRemoteFunction.
Example:
OnGameMode
On Filterscript
Example:
OnGameMode
pawn Code:
enum Information
{
cash,
admin,
level,
}
new pInfo[MAX_PLAYERS][Information];
public OnPlayerConnect(playerid)
{
CallRemoteFunction("GetVars","iiii",playerid,pInfo[playerid][cash],pInfo[playerid][admin],pInfo[playerid][level]);
return 1;
}
pawn Code:
forward GetVars(playerid,cash,admin,level);
enum Information
{
cash,
admin,
level,
}
new pInfo[MAX_PLAYERS][Information];
public GetVars(playerid,cash,admin,level)
{
pInfo[playerid][cash]=cash;
pInfo[playerid][admin]=admin;
pInfo[playerid][level]=level;
}