How can I remove my name of the menu?
i have this code
when someone write "say /players" appears a menu with all names of the players connected, so I want remove the name of the player who write "players" PHP Code:
|
Re: How can I remove my name of the menu?
Modified line is highlighted.
Code:
An optimization that you should do is to store get_maxplayers() in a global variable and initialize it in plugin_ini(). This way it's not calling the native every single time the loop executes. I don't think you get the name of the player in menu_item_getinfo(). You will have to do PHP Code:
|
Re: How can I remove my name of the menu?
Name is the name of the item, so he will get \wPlayerName.
|
Re: How can I remove my name of the menu?
Quote:
|
Re: How can I remove my name of the menu?
I don't think so but is the default color, maybe he gets only the player name
going to test ._. edit: Nope, it doesn't print the color \w, but if you format the name+color (e.g \y[name]) it will print the color too (\y) |
Re: How can I remove my name of the menu?
thanks fysiks, works fine
|
| All times are GMT -4. The time now is 04:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.