23.07.2015, 18:06
You can use a Boolean - at the top of your script:
Once the player has registered in your gamemode add:
once the player has connected to the server -
for clearing it.
Save the data using your saving system and load it too.
Why a Boolean?: it uses 1byte, why would you need a 2 byte integer once you want two values 0 and 1 for example? --- if you want other values do not use Boolean!
I hope I helped any feedback is appreciated!
pawn Код:
new bool: PlayerRegistered[MAX_PLAYERS];
pawn Код:
PlayerRegistered[playerid] = true;
pawn Код:
PlayerRegistered[playerid] = false;
Save the data using your saving system and load it too.
Why a Boolean?: it uses 1byte, why would you need a 2 byte integer once you want two values 0 and 1 for example? --- if you want other values do not use Boolean!
I hope I helped any feedback is appreciated!