SA-MP Forums Archive
Listing all the players in a dialog? - 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: Listing all the players in a dialog? (/showthread.php?tid=223617)



Listing all the players in a dialog? - DeltaAirlines12 - 09.02.2011

How would I make something like /players, and it will open a dialog (MSG_BOX) and list all the players, one name on each line with their ID? I can only figure this out on a command that makes it show in a message, not a dialog. Thanks in advance...


Re: Listing all the players in a dialog? - iFriSki - 09.02.2011

This topic should help you achieve your goal.


Re: Listing all the players in a dialog? - TPD - 09.02.2011

Do the same with a dialog (think about an admins list, how its looped...) and do the loop for the players that are connected (IsPlayerConnected(i)) or whatever you happen to use.


Re: Listing all the players in a dialog? - DeltaAirlines12 - 09.02.2011

Quote:
Originally Posted by TPD
Посмотреть сообщение
Do the same with a dialog (think about an admins list, how its looped...) and do the loop for the players that are connected (IsPlayerConnected(i)) or whatever you happen to use.
but if I looped it like that wouldn't it "ShowPlayerDialog" like as many times as as many people were online


Re: Listing all the players in a dialog? - admantis - 09.02.2011

TAB Key?