AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Connect message (https://forums.alliedmods.net/showthread.php?t=232603)

Loupu. 01-02-2014 06:58

Connect message
 
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

xxxperts 01-02-2014 07:16

Re: Connect message
 
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");
    }



DWIGHTpN 01-02-2014 07:18

Re: Connect message
 
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...");



Loupu. 01-02-2014 07:25

Re: Connect message
 
got this error

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


DWIGHTpN ur works perfect , thanks!

xxxperts 01-02-2014 07:27

Re: Connect message
 
sorry my bad error fixed....


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

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