AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need Help with get_players (https://forums.alliedmods.net/showthread.php?t=12565)

eXist 04-18-2005 07:13

Need Help with get_players
 
The best way I can explain this is through example in my code.
Code:
get_players(players, playercount, "a")     player = players[random_num(0, playercount)]
As you can see, through this code, I've selected a random alive user and his user id is stored in the variable player. Now, my question is, how do I take that user id and get that users name from it?

Thanks for your help eXist.

slurpycof 04-18-2005 09:10

Code:
new name[32] get_user_name(player,name,31)

eXist 04-18-2005 15:29

Thanks alot

eXist


All times are GMT -4. The time now is 10:02.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.