AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   redirect spam name (https://forums.alliedmods.net/showthread.php?t=207554)

avril-lavigne 02-03-2013 21:59

redirect spam name
 
I saw many topics about get_user_name and if(equal if(contain
this code redirects all players instead of certain

PHP Code:

if(contain(Name"[war3ft.ru]") || contain(Name"[No-MyAC]") || contain(Name"www") || equal(Name"Player")) 
        
client_cmd(iPlayer,"Connect bla bla"

it should redirect only players with mentioned names

fysiks 02-04-2013 00:43

Re: redirect spam name
 
You are using contains() wrong. Look at other plugins that use it.


All times are GMT -4. The time now is 20:31.

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