Can anybody help me with my plugin?
Hello i made a plugin but i cant solve this problem with the cvar.
Quote:
some friends helped me with this but i still dont know how to fix this.. im new to scripting. Thanks |
Re: Can anybody help me with my plugin?
Propably you don't need cvar.
See this thread: http://forums.alliedmods.net/showthread.php?t=116285 If you have to use cvar: Code:
#include <amxmodx>If you want to show ip to only one player change Code:
client_print(0, print_chat, "The Server ip is %s", szIp)Code:
client_print(id, print_chat, "The Server ip is %s", szIp) |
Re: Can anybody help me with my plugin?
Thanks :)
|
Re: Can anybody help me with my plugin?
instead of hardcoding the 31 in get_pcvar_string use charsmax(szIp)
|
Re: Can anybody help me with my plugin?
Ok my code so far is :
Quote:
1. How do i make the text "The server ip is" Green using Colorchat. 2. How do i make that it automatically says the server's ip without Cvar. Thanks |
Re: Can anybody help me with my plugin?
use [php][/php] tags....
PHP Code:
PHP Code:
|
Re: Can anybody help me with my plugin?
You can try:
PHP Code:
|
Re: Can anybody help me with my plugin?
Use the one i posted i was informed that !is_dedicated_server returns a 1 if its not a dedicated server which will not give you the servers ip
|
Re: Can anybody help me with my plugin?
!is_dedicated_server has something to do with sv_lan 0
Propably if it is dedicated server than server is 0 othervise server is 1 |
Re: Can anybody help me with my plugin?
Thanks it works now :)
|
| All times are GMT -4. The time now is 19:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.