Change server pass...
hi again
i want to make a script that can change the server password adn only other admins can see the pass and not the users my admins dont have rcon access so they use amx_cvar sv_password and all the players can see the pass so i need to creat a script that can change the pass just typing in the console pro_pass mypass any ideas???? thx this is my try but have problem when press to time the same password Quote:
|
Re: Change server pass...
i thing that i have fineshed
no how can i send a msg with the pass to all the admins in the server |
Re: Change server pass...
is_user_admin
client_print or amx_chat (team_say @) get_cvar_string |
Re: Change server pass...
Quote:
help me pliz where and how i can put this code... |
Re: Change server pass...
This should do it:
Code:
/* AMXMOD X script. |
Re: Change server pass...
thx for the help
but if i can use the client_print with team_say @ new pass is + set_pass it would be more easy..... what u thing??? it is possible??? ps1)client_print(id, print_chat, "* sv_password changed to ^"%s^"", set_pass) print_chat to team_say @ ps2)how can i check if the set_pass is not null??? if it is null i want to change the pass to progather else the given in the args |
Re: Change server pass...
again h change the code....
i can understand.... in the first 5-10 tries the script is working perfectly but after while the scripot doesnt work... why??? what i do wrong??? Quote:
|
Re: Change server pass...
you should set
Code:
server_exec()Code:
Code:
read_argv ( id, set_pass, 31 )Code:
read_argv ( 1, set_pass, 31 )Quote:
you want to use the command with team_say? maybe with "say /pro_pass password"? |
Re: Change server pass...
It doesn't seem like you looked at what I wrote for you.
This does exactly what you want: http://forums.alliedmods.net/showpos...68&postcount=5 There is no difference between team_say and print_chat. print_chat just sends a message to the chat instead of sending a message to the console or to the hud. |
Re: Change server pass...
Quote:
how can i check if the arg 1 is null or "" so the pass to be "progather" elshe the given in the argument... and i want team say for the admin say command |
| All times are GMT -4. The time now is 21:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.