Change Playerid - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Change Playerid (
/showthread.php?tid=158050)
Change Playerid -
Dws - 08.07.2010
Hi, when you connect to a server the server assigns you the playerid 0, the next is assigned as 1..., but when a NPC connects to the server the server assigns it the playerid 0. I want that NPC don't have those ids, instead want them to have larger id. Can i do that?
Sorry for my English
Re: Change Playerid -
CAR - 08.07.2010
No because you don't got a function like: SetPlayerID(playerid, newplayerid);
So no
Re: Change Playerid -
iJumbo - 08.07.2010
a stock can make it?
Re: Change Playerid -
CAR - 08.07.2010
No sorry
Re: Change Playerid -
Dws - 08.07.2010
Here is an idea. We can connect 30 NPC, for example, and with a timer to five seconds can cause a disconnect, is possible?
Re: Change Playerid -
iJumbo - 08.07.2010
you get to old id
Re: Change Playerid -
Dws - 08.07.2010
I do not understand what you said, my English is not very good.
Re: Change Playerid -
Cameltoe - 08.07.2010
if playerid 0 is logged in then disconnects the next player that logs in will get playerid 0, that's how samp works. spamming your server with npcs wont work
Re: Change Playerid -
Adil - 08.07.2010
If you connect some people in game, and then disconnect them, the new people to come in the server will cover up their ID's instead of giving them the new ID.
For example, you connect fifteen people in game, and then disconnect the first ten people, there will be five people left with the ID's from ten to fourteen. Then if you reconnect those people who disconnected earlier, the ID's from zero to nine will be filled up, instead of fifteen to twenty-four.
Re: Change Playerid -
Dws - 08.07.2010
Quote:
Originally Posted by Cameltoe
if playerid 0 is logged in then disconnects the next player that logs in will get playerid 0, that's how samp works. spamming your server with npcs wont work
|
That is what i want, that first NPCs disappear 5 seconds later when they connect, the latests NPCs continue connected, and the players who will connected will have the playerid 0, 1...