AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to change server_cmd commands (https://forums.alliedmods.net/showthread.php?t=237766)

AMeEeRo 03-29-2014 07:08

How to change server_cmd commands
 
Hello,
i need small help ...
If i want to change kick and message, i mean i want to replace kick with redirect_user and after player id number 2
like this
redirect_user #%d and i want to remove that message after it
sorry i'm newbie just help me with this and i will get the idea for all plugins and thanks.
example:
PHP Code:

server_cmd("kick #%d ^"You were kicked for joining a team and idling without choosing a model.^""get_user_userid(id) ) 

Thanks.

amx_tiger 03-29-2014 07:46

Re: How to change server_cmd commands
 
I think this is what you want:

PHP Code:

server_cmd("redirect_user #%d"get_user_userid(id)) 


AMeEeRo 03-30-2014 06:26

Re: How to change server_cmd commands
 
Quote:

Originally Posted by amx_tiger (Post 2117385)
I think this is what you want:

PHP Code:

server_cmd("redirect_user #%d"get_user_userid(id)) 


PHP Code:

server_cmd("redirect_user #%d 2"get_user_userid(id)) 

Like that thanks :D


All times are GMT -4. The time now is 05:59.

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