User Tag Prefix
4 Attachment(s)
Game : Counter-Strike
Version : 2.2 [ Description ] [UTP] User tag Prefix its a plugin which you can give players or admins tags by name or ip or steamid or flag or pass and you have to use also access flag.... [ Cvars ] Code:
utp_show_user_status "1" - Show Alive/Dead user status in chat, value <0 - Show Alive/Dead> <1 - Show Dead Only> <2 - Show Alive Only> Code:
amx_reloadtags - reload the config tag file Code:
add tag by name:- PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Add the files in their direct folders and then go to configs/ open plugins.ini file, scroll down add the plugin name 'user_tag_prefix.amxx' at the last close and save ! Code:
|
Re: User Tag Prefix
No, not again a tag plugin, they are everywhere.
|
Re: User Tag Prefix
Quote:
And beside this one will be different.. |
Re: User Tag Prefix
And so so so badly coded.
|
Re: User Tag Prefix
Quote:
|
Re: User Tag Prefix
Quote:
Example: Code:
Instead of writing 32-1 :nono: use charsmax(). Also use formatex instead of format. In remove_users_tags() you should use get_players. |
Re: User Tag Prefix
Some more and more and more examples:
1. In plugin_init you create msgid_saytext and use it just one time, just use directly the native. 2. You don't need to remove tags in disconnect & putinserver, do that only in disconnect. 3. In client_infochanged static is not needed. 4. Use charsmas instead of harcoding a string array size. 5. Use formatex, not format, is faster. 6. You use prefix wrong. On a bool, you put "s" and "f" with makes me think at a string and a float, not at a bool. 7. sizeof is not a function, you should not use it like sizeof(string), but sizeof string. 8. In remove_user_flags use get_players to get all VALID players. 9. You should not return an array, this may work but it's a bad way. |
Re: User Tag Prefix
Quote:
PHP Code:
|
Re: User Tag Prefix
When you loop from 0 to maxplayers you loop all possible ent that can be players, not all players and you can get invalid results. get_players is faster and will give correct results.
|
Re: User Tag Prefix
All the hard coded will be FiXeD Soon... :nono:
|
All times are GMT -4. The time now is 19:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.