Raised This Month: $ Target: $400
 0% 

Connect message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Loupu.
Member
Join Date: Jul 2013
Old 01-02-2014 , 06:58   Connect message
Reply With Quote #1

Hi , is theare a plugin .. somthing like .. when a player enter pe server , he automatic get a chat message from server.. please i realy need that plugin
Loupu. is offline
xxxperts
Senior Member
Join Date: Oct 2013
Location: India
Old 01-02-2014 , 07:16   Re: Connect message
Reply With Quote #2

Here is My Version of Welcome Message Not Tested But Should Work..

amx_welcome_msg "1" to on plugin else 0 to turn off


PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Welcome Message"
#define VERSION "1.0"
#define AUTHOR "[ZOF 'X]"

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_cvar("amx_welcome_msg""1");
}

public 
client_connect(id)
{
    
set_task(8.0"welcome_task"id);
}

public 
welcome_task(id)
{
    if(
get_cvar_num("amx_welcome_msg")==1)
    {
        
client_print(idprint_chat"Your Message Here");
    }

__________________
All my work is here

Last edited by xxxperts; 01-02-2014 at 07:27.
xxxperts is offline
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 01-02-2014 , 07:18   Re: Connect message
Reply With Quote #3

PHP Code:
#include<amxmodx>

public plugin_init() {
       
register_plugin("Connect msg""1.0""Loupu.");
}
public 
client_putinserver(id) {
       
set_task(2.0"MsgB"id);
}
public 
MsgB(id) {
       
client_print(idprint_chat"Welcome...");


Last edited by DWIGHTpN; 01-02-2014 at 07:20.
DWIGHTpN is offline
Loupu.
Member
Join Date: Jul 2013
Old 01-02-2014 , 07:25   Re: Connect message
Reply With Quote #4

got this error

[AMXX] Run time error 10: native error (native "client_print")


DWIGHTpN ur works perfect , thanks!

Last edited by Loupu.; 01-02-2014 at 07:27.
Loupu. is offline
xxxperts
Senior Member
Join Date: Oct 2013
Location: India
Old 01-02-2014 , 07:27   Re: Connect message
Reply With Quote #5

sorry my bad error fixed....
__________________
All my work is here

Last edited by xxxperts; 01-02-2014 at 07:27.
xxxperts is offline
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 10:07.


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