SA-MP Forums Archive
Dialog - List all ingame players - 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: Dialog - List all ingame players (/showthread.php?tid=111687)



Dialog - List all ingame players - Klid - 03.12.2009

Can anyone help me do a ShowPlayerDialog
And the Dialog lists everyone ingame ...

Like if 3 people were ingame
Names :

Ryan
Tim
Junia

When the dialog comes up it would list

Ryan
Tim
Junia


Thank you,

Kaleem


Re: Dialog - List all ingame players - ExoSanty - 03.12.2009

the TAB-Button does that... !?


Re: Dialog - List all ingame players - Klid - 03.12.2009

I know, i mean I am using it for a command ...

So I want to be able to do things for each specific player that I click with OnDialogResponce


Re: Dialog - List all ingame players - FrostBytez - 03.12.2009

Quote:
Originally Posted by [CRP
Kaleem ]
I know, i mean I am using it for a command ...

So I want to be able to do things for each specific player that I click with OnDialogResponce
You can make that happen with the regular player list too


Re: Dialog - List all ingame players - Klid - 03.12.2009

lol i know but I want to be able to use ShowDialogForPlayer and OnDialogResponce because I want this to work through a command


Re: Dialog - List all ingame players - Retardedwolf - 03.12.2009

Loop all players then GetPlayerName?


Re: Dialog - List all ingame players - V1ceC1ty - 03.12.2009

Quote:
Originally Posted by [CRP
Kaleem ]
I know, i mean I am using it for a command ...

So I want to be able to do things for each specific player that I click with OnDialogResponce
OnPlayerClickPlayer using the tab menu

https://sampwiki.blast.hk/wiki/OnPlayerClickPlayer


Re: Dialog - List all ingame players - GTA967 - 03.12.2009

Quote:
Originally Posted by V№ceC№ty
Quote:
Originally Posted by [CRP
Kaleem ]
I know, i mean I am using it for a command ...

So I want to be able to do things for each specific player that I click with OnDialogResponce
OnPlayerClickPlayer using the tab menu

https://sampwiki.blast.hk/wiki/OnPlayerClickPlayer
Quote:
Originally Posted by [CRP
Kaleem]lol i know but I want to be able to use ShowDialogForPlayer and OnDialogResponce because I want this to work through a command



Re: Dialog - List all ingame players - roschti - 03.12.2009

easy, just loop through all players, add their name to a string and show them as list in a dialog.

in OnPlayerDialog......: get the input, loop through all players and check the name (no player found with the name -> player disconnected while the dialog is shown)

done ^^


Re: Dialog - List all ingame players - Joe Staff - 03.12.2009

I made this exact thing in my Example Admin Panel v2.0 some time ago, take a look inside and find it.