AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   csdm joyn msg (https://forums.alliedmods.net/showthread.php?t=83169)

tuty 01-05-2009 09:24

csdm joyn msg
 
Hi, i use csdm the latest version on my server.
I need to translate this [CSDM] This server is using CSDM 1.2.1
[CSDM] Visit www.bailopan.net

in this


[CSDM] Acest server foloseste CSDM 1.2.1
[CSDM] Viziteaza www.bailopan.net


how can i change it.. all my chat messages and hud in my server are in romanian... and i need to translate this :-/

xPaw 01-05-2009 09:30

Re: csdm joyn msg
 
as i know this msg are in csdm.dll
try to block that msg(example in csdm nomalizer)
and do your own

zwfgdlc 01-05-2009 10:05

Re: csdm joyn msg
 
try this
PHP Code:

public csdm_CfgInit()
{
    
csdm_set_intromsg(0);    



tuty 01-05-2009 10:14

Re: csdm joyn msg
 
it works :) :mrgreen::mrgreen::mrgreen: thx man... thanks both :)

EDIT: if i cant edit that message i disable it >:) :)

SnoW 01-05-2009 10:19

Re: csdm joyn msg
 
Ofc you can just make additional plugin, where you just set_task in init and make say function(With the romanian message). Though you could just add it to some other plugin you use in your server. Ofc after deleting the english one.
Edit: Yes, exactly what xPaw said :) (didn't notice), well you got an example for it anyway.

xPaw 01-05-2009 10:19

Re: csdm joyn msg
 
and after it do your own ;)

tuty 01-05-2009 11:41

Re: csdm joyn msg
 
allready done :) ;)


PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <csdm>

#define PLUGIN "CSDM Remove Message"
#define VERSION "1.0"
#define AUTHOR "unnasigned :))"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
}
public 
csdm_CfgInit()
{
    
csdm_set_intromsg(0);    
}
public 
client_putinserver(id)
{
    
set_task(10.0"msg"id);
}
public 
msg(id)
{
    
client_print(idprint_chat"[CSDM] Acest server foloseste CS: Death-Match");
    
client_print(idprint_chat"[CSDM] Viziteaza www.bailopan.net");



xPaw 01-05-2009 12:17

Re: csdm joyn msg
 
yea add check for is_user connected, sure he can be disconnected while this 10 seconds :)

anakin_cstrike 01-05-2009 12:26

Re: csdm joyn msg
 
Ofcourse, and the message is set after the player joins a team, so you code is not very efficient.
Use TeamInfo.

tuty 01-05-2009 12:49

Re: csdm joyn msg
 
i just wanted for my server.. for me works fine :) nothing imp.


All times are GMT -4. The time now is 09:07.

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