Other player with same id - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Other player with same id (
/showthread.php?tid=552903)
Other player with same id -
Banditukas - 27.12.2014
Hi,
For example my player id is 5. I out from server other player connect and him id is too 5. I have mysql saving when player disconect and i update with player variables MONEY[ playerid ], XP[ playerid ] etc.. And too i have made when player connect i set 0 or null to all variables, that means when i disconnect other player can join and when onplayerdisconnect will be called then saving will be other player not me. Or just when OnPlayerDisconnect call back end is then other player can just connect.