Raised This Month: $ Target: $400
 0% 

I made one plugin but..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mrrr
Member
Join Date: Jun 2007
Old 07-16-2007 , 09:58   I made one plugin but..
Reply With Quote #1

Hello

I made this plugin:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "plugin"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init() {

register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("say /command", "server_command", ADMIN_ALL, "something here")
}
public server_command(id)
{
client_print(id, print_chat, "*************** something ***************")
client_print(id, print_chat, "something here")
client_print(id, print_chat, "*************** something ***************")
return PLUGIN_HANDLED
}
public playerconnect(id)
{
client_print(id, print_chat, "*************** something ***************")
client_print(id, print_chat, "something here")
client_print(id, print_chat, "*************** something ***************")
}

public client_putinserver(id) {
new name[32];
get_user_name(id,name,31)
server_cmd("say player %s is connecting",name)
}

But when i or other people connect, it doesn't display anything else except "player NICKNAME_HERE is connecting"

Yes.. the command: /command WORKS, but the public playerconnect(id) doesnt

Can you tell me why, and how i can fix it ?

Thanks
Regards

Last edited by Mrrr; 07-16-2007 at 10:06.
Mrrr is offline
 


Thread Tools
Display Modes

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 21:34.


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