Dialog - List all ingame players
#1

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
Reply
#2

the TAB-Button does that... !?
Reply
#3

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
Reply
#4

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
Reply
#5

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

Loop all players then GetPlayerName?
Reply
#7

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
Reply
#8

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
Reply
#9

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 ^^
Reply
#10

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


Forum Jump:


Users browsing this thread: 2 Guest(s)