Raised This Month: $ Target: $400
 0% 

Scripting Help - replace tsay in chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RCC|Dynamite
Senior Member
Join Date: May 2004
Location: Germany
Old 06-01-2005 , 17:06   Scripting Help - replace tsay in chat
Reply With Quote #1

I would like to use the chat and not the amx_tsay msg, somebody knows which line has to replace.

Code:
client_print(id,print_chat,"join: Joining to the Server") or client_print(id,print_chat,"Leave: leaving the Server")

Code:
/*AMX MOD Join/Leave Message 1.2 by BigBaller Sendet ein Tsay Nachrict an alle spielen wenn ein neues Spieler connected, wenn ein Spieler reconnected oder den Server verlässt erschein eine neu Nachricht "Aufwiedersehen" Einfach nur die join_leave.amxx in dein /addons/amxmodx/plugins Ordner Kopieren join_leave.amx in deine amxmodx/configs/plugins.ini hinzufügen Server neustarten oder Mapwechseln Habe Spass damit! *New, Du bist in der Lage, die Anzeigen auszuschalten bzw. einzuschalten an/aus in der Datein addons/amxmodx/configs/amxx.cfg cvar amx_join_leave 1 = an 0 = aus Standartmäßig ist das Plugin aus "an" Change Log v 1.0 - Started with basic messages. v 1.1 - Created a cvar to disable messages (cvar is amx_join_leave 1|0) v 1.2 - Moved the messages up, they conflicted with plugins such as StatsX and PTB v 1.3 - German guidance of RCC| Dynamite original ("Join/Leave Message","1.2","BigBaller") */ #include <amxmodx> public plugin_init() {   register_plugin("Join_Leave deutsch","1.3","Dynamite")   register_cvar("amx_join_message", "Achtung %name% ist auf dem Weg zu connecten.")   register_cvar("amx_joined_message", "Oh Nein! %name% ist bereit zu Spielen!")   register_cvar("amx_leave_message", "Aufwiedersehn %name%, Bis zum naechsten mal.")   register_cvar("amx_join_leave","1") } public client_connect(id){     new user[32], len     user[0] = id     len = get_user_name(id,user[1],31)     set_task(2.0, "join_msg", 0, user,len + 2)     return PLUGIN_CONTINUE } public client_putinserver(id){     new user[32], len     user[0] = id     len = get_user_name(id,user[1],31)     set_task(2.0, "joined_msg", 0, user,len + 2)     return PLUGIN_CONTINUE } public client_disconnect(id){     new user[32], len     user[0] = id     len = get_user_name(id, user[1], 31)     set_task(2.0, "leave_msg", 0, user, len + 2)     return PLUGIN_CONTINUE } public join_msg(user[]) {         if (get_cvar_num("amx_join_leave")==0){         return PLUGIN_HANDLED         }     if (get_cvar_num("amx_join_leave")==1){     new message[192]     get_cvar_string("amx_join_message", message, 191)     replace(message, 191, "%name%", user[1])     set_hudmessage(0, 225, 0, 0.05, 0.45, 0, 6.0, 6.0, 0.5, 0.15, 3)     show_hudmessage(0, message)     return PLUGIN_CONTINUE     }     return PLUGIN_CONTINUE } public joined_msg(user[]) {         if (get_cvar_num("amx_join_leave")==0){         return PLUGIN_HANDLED         }     if (get_cvar_num("amx_join_leave")==1){     new message[192]     get_cvar_string("amx_joined_message", message, 191)     replace(message, 191, "%name%", user[1])     set_hudmessage(0, 225, 0, 0.05, 0.45, 0, 6.0, 6.0, 0.5, 0.15, 3)     show_hudmessage(0, message)     return PLUGIN_CONTINUE     }     return PLUGIN_CONTINUE } public leave_msg(user[]) {         if (get_cvar_num("amx_join_leave")==0){         return PLUGIN_HANDLED         }     if (get_cvar_num("amx_join_leave")==1){     new message[192]     get_cvar_string("amx_leave_message", message, 191)     replace(message, 191, "%name%", user[1])     set_hudmessage(0, 225, 0, 0.05, 0.45, 0, 6.0, 6.0, 0.5, 0.15, 3)     show_hudmessage(0, message)     return PLUGIN_CONTINUE     }     return PLUGIN_CONTINUE }

Thx

Dynamite
__________________

|###########|
|###########|
|###########|
RCC|Dynamite is offline
Send a message via ICQ to RCC|Dynamite
RCC|Dynamite
Senior Member
Join Date: May 2004
Location: Germany
Old 06-04-2005 , 08:36  
Reply With Quote #2

The text who is comming or is readz to fight ist in the middel of the screen like a amx_tsay message and that is not what i want i have seen that is possible the same text in the chat.



I wanne have the msg connect,ready to fight and leave the server

Cu

Dynamite
__________________

|###########|
|###########|
|###########|
RCC|Dynamite is offline
Send a message via ICQ to RCC|Dynamite
faluco
Developer
Join Date: Mar 2005
Location: Valencia, Spain
Old 06-04-2005 , 08:54  
Reply With Quote #3

I have replied you in the help forum
faluco is offline
RCC|Dynamite
Senior Member
Join Date: May 2004
Location: Germany
Old 06-04-2005 , 10:42  
Reply With Quote #4

Thx

i have answer there
__________________

|###########|
|###########|
|###########|
RCC|Dynamite is offline
Send a message via ICQ to RCC|Dynamite
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:46.


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