SA-MP Forums Archive
Ignore an 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: Ignore an ID? (/showthread.php?tid=561480)



Ignore an ID? - marshallbrown - 03.02.2015

I want none of my players to get ID 1. Is it possible? If yes, PLease explain.

Details: If 5 players join my server, Everyone should get an ID number EXCEPT 1


AW: Ignore an ID? - rospar - 03.02.2015

Add 2 Bots


Re: AW: Ignore an ID? - marshallbrown - 04.02.2015

Quote:
Originally Posted by rospar
Посмотреть сообщение
Add 2 Bots
Umm Nope.


Respuesta: Ignore an ID? - Zume - 04.02.2015

What I know is the only legal way, NPC.


Re: Ignore an ID? - SickAttack - 04.02.2015

This is only possible by connecting 2 NPCS to the server, you cannot assign IDS to players.


Re: Ignore an ID? - marshallbrown - 04.02.2015

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
This is only possible by connecting 2 NPCS to the server, you cannot assign IDS to players.
But I heard that the NPC's wont take player count. Or Am I wrong?


Re: Ignore an ID? - SickAttack - 04.02.2015

Quote:
Originally Posted by marshallbrown
Посмотреть сообщение
But I heard that the NPC's wont take player count. Or Am I wrong?
They do, for every NPC you connect, it takes 1 slot from the server's player limit, and the NPC will get the least player ID.


Re: Ignore an ID? - Schneider - 04.02.2015

Quote:
Originally Posted by marshallbrown
Посмотреть сообщение
But I heard that the NPC's wont take player count. Or Am I wrong?
Well, there are functions like 'IsPlayerNPC' which has a playerid-parameter. So I assume NPC's will take playerid's.


Re: Ignore an ID? - marshallbrown - 04.02.2015

Quote:
Originally Posted by _Zume
Посмотреть сообщение
The NPC will take the ID to be connected, you can create a system to eject players with the ID and allow only NPC (IsPlayerNPC) in any case where a player takes the ID ..
Quote:
Originally Posted by SickAttack
Посмотреть сообщение
They do, for every NPC you connect, it takes 1 slot from the server's player limit, and the NPC will get the least player ID.
Quote:
Originally Posted by Schneider
Посмотреть сообщение
Well, there are functions like 'IsPlayerNPC' which has a playerid-parameter. So I assume NPC's will take playerid's.
So, Can I still use this FS for a Dynamic NPC?
Link: https://sampforum.blast.hk/showthread.php?tid=248929


Re: Ignore an ID? - SickAttack - 04.02.2015

Quote:
Originally Posted by marshallbrown
Посмотреть сообщение
So, Can I still use this FS for a Dynamic NPC?
Link: https://sampforum.blast.hk/showthread.php?tid=248929
Of course you can, however I don't know why you don't want people to use ID 1..