AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get id (https://forums.alliedmods.net/showthread.php?t=217546)

piepie 06-04-2013 06:49

get id
 
can someone give an example code if i say .id 1 in chat it'll get the username of the player with userid 1 and print in chat ''The username of id 1 is player''

YamiKaitou 06-04-2013 07:16

Re: get id
 
So then read the arg and then use get_user_name on the arg

fysiks 06-05-2013 03:58

Re: get id
 
To do this you have to hook "say" alone and then parse the string manually to do this. This is done in many plugins and this question has been asked a lot.


All times are GMT -4. The time now is 16:22.

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