2019-05-08, 08:50 PM
^ Use that as above when a player respawns or dies or whatsoever, else you can just function a loop every 5 minutes (or if u have any loop that goes through connected players)
example:
example:
Code:
for(new i = 0; i != MAX_PLAYERS; i)
{
if(!IsPlayerConnected(i)) continue;
ResetPlayerMoney(i);
GivePlayerMoney(playerid, PlayerData[playerid][pMoney] );
}