24.05.2009, 18:23
So what's the problem? You don't know how? You do it the same as you save all your other variables.
dUserSetINT(PlayerName(playerid)).("bomb",HaveBomb[playerid]);
That will save the HaveBomb value for the playerid to his file when he disconnected.
EDIT: to get the variable back:
HaveBomb[playerid] = dUserINT(PlayerName(playerid)).("bomb");
dUserSetINT(PlayerName(playerid)).("bomb",HaveBomb[playerid]);
That will save the HaveBomb value for the playerid to his file when he disconnected.
EDIT: to get the variable back:
HaveBomb[playerid] = dUserINT(PlayerName(playerid)).("bomb");