AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ML, how to? (https://forums.alliedmods.net/showthread.php?t=208899)

Unkolix 02-18-2013 16:07

ML, how to?
 
How to do ML this?
PHP Code:

client_cmd(id"echo ^"[HPKSorry but you have high ping, try later...^"; disconnect"

Is this correct?
PHP Code:

client_cmd(id"%L""HPK_USER_HIGH_PING"


ConnorMcLeod 02-18-2013 16:28

Re: ML, how to?
 
No, only think to translate is :

[HPK] Sorry but you have high ping, try later...


Let's show us how you register the translation file and its content.

Unkolix 02-18-2013 16:44

Re: ML, how to?
 
PHP Code:

register_dictionary_colored"hpk.txt" ); 

Code:

[en]
HPK_USER_HIGH_PING = echo ^"!r[HPK]!n Sorry but you have high ping, try later...^"; disconnect
HPK_ALL_HIGH_PING = !r[HPK]!t %s!n was disconnected due to high ping!
HPK_DISABLED = !r[HPK]!n Ping checking disabled due to immunity...
HPK_MAX_PING = !r[HPK]!n Players with ping higher than !t%dms!n will be kicked!

P.S. Compiles fine.

Btw, will this work with this?
PHP Code:

server_cmd("%L""AFK_WERE_KICKED"get_user_userid(id), maxafktime

Or
PHP Code:

log_message("%L"id"LOADED_WORDS"g_swearsNum 



All times are GMT -4. The time now is 21:43.

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