SA-MP Forums Archive
remove player id 0 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: remove player id 0 (/showthread.php?tid=351306)



remove player id 0 - diehard5225 - 15.06.2012

hey i heard that sometimes ppl who connect with player id 0 can bug things is it possible to add a function where ppl can only join as player id 1 or higher have no player id 0? for example

john(player id 1 joins)
boe(player id 2 joins)

where no one joins as player id 0


Re: remove player id 0 - Jack_Rocker - 15.06.2012

Create an NPC! When the server starts up, it takes up the first avaliable slot, which is id 0! There are some decent tutorials that can help you create one!

Thanks,

Jack_Rocker


Re: remove player id 0 - DiDok - 15.06.2012

Basically this, but be prepared that after sudden server restart/crash, players will connect before NPC, going to bugged ID 0, I have experienced this a lot
Also, AFAIK any bugs with ID 0 come from script bugs, it's better to eliminate these than adding bot to block bugged id