13.08.2009, 14:23
I will give you how i have mine :
Btw welcome Alice to samp forum
Код:
new Euro[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
Euro[playerid]=0; // This is very important to prevent bugs !
}
public OnPlayerDisconnect(playerid, reason)
{
dUserSetINT(PlayerName(playerid)).("Euro",GetPlayerEuro(playerid));
}
stock GivePlayerEuro(playerid, money)
{
Euro[playerid] = Euro[playerid] + money;
return Euro[playerid];
}
stock ResetPlayerEuro(playerid)
{
Euro[playerid] = 0;
return Euro[playerid];
}
stock GetPlayerEuro(playerid)
{
return Euro[playerid];
}

