Player Names in Dialog Menu - 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: Player Names in Dialog Menu (
/showthread.php?tid=127771)
Player Names in Dialog Menu -
Quincy_Gatlin - 14.02.2010
Hey I was wondering how you would make a dialog to show all the online players names, I was wanting to use it for my banking system and maybe for /give. Instead of typing in a player name or id just select it from the list in a dialog. I know it is possible I have seen it done before. Thanks for any replies.
Re: Player Names in Dialog Menu -
FlatMaN - 21.02.2010
Woops xD
bad solution
Re: Player Names in Dialog Menu -
Rizard - 21.02.2010
It could take some time to create that.
Why not use
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source) //it is used when a player clicks another player in the playerlist ("tablist")
{
return 1;
}
PS: yay, 200 posts xD
Riz
Re: Player Names in Dialog Menu -
Quincy_Gatlin - 21.02.2010
Well...not quite. I want you to be able to do a command at the bank and pull up all the names in a dialog list similar to the scoreboard menu, without using the scoreboard...if that makes sense.
Re: Player Names in Dialog Menu -
Rizard - 21.02.2010
it makes sence allright , you are asking an interesting question as well.
The basics would be a for loop and within a format(string,sizeof(string),"%s\n",PlayerName(i)) ;
but I'm not wake enough atm to think even furder, don't even know if I could do it.
Let's ask for some more experienced help with this post?
Other scripters please respond / help.
PS: I'll be back
Re: Player Names in Dialog Menu -
Quincy_Gatlin - 21.02.2010
Ok, thank you. Any help would be appretiated. I think I have a friend that knows. I'll ask him about it.