Raised This Month: $ Target: $400
 0% 

Client Connect Messages......


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AssAssIN_IMpossible
BANNED
Join Date: Nov 2013
Location: india
Old 11-15-2013 , 07:19   Client Connect Messages......
Reply With Quote #1

This plugin shows a message everytime when a client connects to the server

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

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Client Connect Chat Messages"
#define VERSION "1.0"
#define AUTHOR "AssAssIN_IMpossible"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	// Add your code here...
}

public client_connect(id)
{
	client_print(id, print_chat, "[amxx] New client joined the server")
	
}
Just install simply.....
AssAssIN_IMpossible is offline
CookieCrumbler
Senior Member
Join Date: Feb 2013
Location: Australia
Old 11-15-2013 , 07:43   Re: Client Connect Messages......
Reply With Quote #2

Connect Announce w/ Sound 0.2
http://forums.alliedmods.net/showthread.php?t=19228
GHW Connect Messages
https://forums.alliedmods.net/showthread.php?t=63507
CookieCrumbler is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 11-15-2013 , 09:53   Re: Client Connect Messages......
Reply With Quote #3

Quote:
Originally Posted by AssAssIN_IMpossible View Post
This plugin shows a message everytime when a client connects to the server

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

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Client Connect Chat Messages"
#define VERSION "1.0"
#define AUTHOR "AssAssIN_IMpossible"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	// Add your code here...
}

public client_connect(id)
{
	client_print(id, print_chat, "[amxx] New client joined the server")
	
}
Just install simply.....
1. Wrong Section.
2. Redundant Code.
3. client_print(id, ...) would show the message only to the connected player.
4. You can't see any messages while you connect, use client_putinserver instead.
__________________
Kia is offline
Old 11-16-2013, 02:44
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: STOP
AssAssIN_IMpossible
BANNED
Join Date: Nov 2013
Location: india
Old 11-16-2013 , 05:31   Re: Client Connect Messages......
Reply With Quote #4

Quote:
Originally Posted by LordOfNothing View Post
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Client Connect Chat Messages"
#define VERSION "1.0"
#define AUTHOR "AssAssIN_IMpossible"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
}

public 
client_connect(id)
{
    
client_print(idprint_chat"[amxx] New client joined the server")
    

------------------- >>>>>>>>>>>>>>

PHP Code:
#include <amxmodx>

public client_putinserver(id)
{
    
client_print(0print_chat"[amxx] New client joined the server")
    


You are my best friend #LordOfNothing
AssAssIN_IMpossible is offline
Old 11-16-2013, 05:45
LordOfNothing
This message has been deleted by LordOfNothing.
vedant007
Member
Join Date: Jul 2013
Old 11-16-2013 , 09:48   Re: Client Connect Messages......
Reply With Quote #5

Quote:
Originally Posted by Kia View Post
1. Wrong Section.
2. Redundant Code.
3. client_print(id, ...) would show the message only to the connected player.
4. You can't see any messages while you connect, use client_putinserver instead.
yes agree with Kia !! this worng section & there is a lot of plugins better then your plugin(dont mind)
Some of Best Plugins are as follows : -
Join\leave Amxx Message
Join\leave annoucement with sounds

Last edited by vedant007; 11-16-2013 at 09:49.
vedant007 is offline
Send a message via Skype™ to vedant007
AssAssIN_IMpossible
BANNED
Join Date: Nov 2013
Location: india
Old 11-17-2013 , 08:56   Re: Client Connect Messages......
Reply With Quote #6

Quote:
Originally Posted by vedant007 View Post
yes agree with Kia !! this worng section & there is a lot of plugins better then your plugin(dont mind)
Some of Best Plugins are as follows : -
Join\leave Amxx Message
Join\leave annoucement with sounds


agree....
bt iam new to pawn/amxx scripting so.....
u know
AssAssIN_IMpossible is offline
xDoctor
Member
Join Date: Jul 2013
Old 11-17-2013 , 09:33   Re: Client Connect Messages......
Reply With Quote #7

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

#include < amxmodx >
#include < colorchat >

public plugin_init() {}


public 
client_connect id )

{
    new 
szName 32 ];
    
    
get_user_nameidszNamecharsmax szName ));
    
    
ColorChatidTEAM_COLOR"^3 %s ^1 is now connected"szName );
    

xDoctor is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 11-17-2013 , 10:27   Re: Client Connect Messages......
Reply With Quote #8

Quote:
Originally Posted by xDoctor View Post
PHP Code:
/* Plugin generated by AMXX-Studio */

#include < amxmodx >
#include < colorchat >

public plugin_init() {}


public 
client_connect id )

{
    new 
szName 32 ];
    
    
get_user_nameidszNamecharsmax szName ));
    
    
ColorChatidTEAM_COLOR"^3 %s ^1 is now connected"szName );
    

Seems you didn't read my post, use client_putinserver instead.
__________________
Kia is offline
xDoctor
Member
Join Date: Jul 2013
Old 11-18-2013 , 03:52   Re: Client Connect Messages......
Reply With Quote #9

Quote:
Originally Posted by Kia View Post
Seems you didn't read my post, use client_putinserver instead.
i know what is this client_putinserver

but whats the difference ?


__

sorry for bad english
xDoctor is offline
LordOfNothing
BANNED
Join Date: Jul 2013
Old 11-18-2013 , 04:34   Re: Client Connect Messages......
Reply With Quote #10

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

#include < amxmodx > 
#include < colorchat > 

public plugin_init() {} 


public 
client_connect id 


    new 
szName 32 ]; 
     
    
get_user_nameidszNamecharsmax szName )); 
     
    
ColorChatidTEAM_COLOR"^3 %s ^1 is now connected"szName ); 
     


The Difference is you try to show a client who is connecting an meesage in chat X( if u wanna show on other players the msg you need to replace this
PHP Code:
  ColorChatidTEAM_COLOR"^3 %s ^1 is now connected"szName ); 
with this - >>>
PHP Code:
 ColorChat0TEAM_COLOR"^3 %s ^1 is now connected"szName ); 

Last edited by LordOfNothing; 11-18-2013 at 04:35.
LordOfNothing 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 17:46.


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