01.11.2015, 21:02
Use PVars
server destroys PVar when player disconnected.
Tutorial: https://sampwiki.blast.hk/wiki/Per-player_variable_system
Код:
SetPVarInt(playerid, "CheckpointStatus", 1); GetPVarInt(playerid, "CheckpointStatus") DeletePvar(playerid, "CheckpointStatus"); // when you want to set it to 0
Tutorial: https://sampwiki.blast.hk/wiki/Per-player_variable_system