Raised This Month: $ Target: $400
 0% 

Connect Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
diviqt
Senior Member
Join Date: Jul 2007
Location: Bulgaria
Old 06-22-2008 , 12:35   Connect Plugin
Reply With Quote #1

I saw a plugin in 1 server that when someone connects he gets a chat massage

Site : www.site.com
Irc : irc.server.org
Channel : #channel

Or something like this ... can someone tell me the name of that plugin
Thanks.

Last edited by diviqt; 06-22-2008 at 15:04.
diviqt is offline
Send a message via ICQ to diviqt Send a message via Skype™ to diviqt
shine771
Senior Member
Join Date: Jun 2007
Old 06-22-2008 , 20:13   Re: Connect Plugin
Reply With Quote #2

Quote:
#include <amxmodx>
public plugin_init() register_plugin("Connect Chat Msg","0.7","Sh!nE*")
public client_putinserver(id) set_task(5.0,"showit",id)
public client_disconnect(id) remove_task(id)
public showit(id) {
client_print(id,print_chat,"Site : www.site.com")
client_print(id,print_chat,"Irc : irc.server.org")
client_print(id,print_chat,"Channel : #channel ")
}
Now.. Give me karma? :S XXD
shine771 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-22-2008 , 21:20   Re: Connect Plugin
Reply With Quote #3

Cvars:
connect_website <website> -- website used in: "Website: <website>"
connect_irc <irc> -- irc used in: "Irc: <irc>"
connect_channel <channel> -- channel used in: "Channel: <channel>"
connect_delay <delay> -- delay before messages are displayed after client connects

Code:
#include <amxmodx> new connect_website; new connect_irc; new connect_channel; new connect_delay; public plugin_init() {     register_plugin("Connect Messages", "0.1", "Exolent");         connect_website = register_cvar("connect_website", "www.site.com", 0, 0.0):     connect_irc = register_cvar("connect_irc", "irc.server.org", 0, 0.0);     connect_channel = register_cvar("connect_channel", "#channel", 0, 0.0);     connect_delay = register_cvar("connect_delay", "0.5", 0, 0.0);         return PLUGIN_CONTINUE; } public client_putinserver(plr) {     new Float:fDelay = floatmax(0.1, get_pcvar_float(connect_delay));         set_task(fDelay, "taskShowMessage", plr, "", 0, "", 0);         return PLUGIN_CONTINUE; } public taskShowMessage(plr) {     new sInfo[128];         get_pcvar_string(connect_website, sInfo, 127);     client_print(plr, "Website: %s", sInfo);         get_pcvar_string(connect_irc, sInfo, 127);     client_print(plr, "Irc: %s", sInfo);         get_pcvar_string(connect_channel, sInfo, 127);     client_print(plr, "Channel: %s", sInfo);         return PLUGIN_CONTINUE; } public client_disconnect(plr) {     if( task_exists(plr, 0) )     {         remove_task(plr, 0);     }         return PLUGIN_CONTINUE; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 06-23-2008 at 13:26. Reason: max() -> floatmax()
Exolent[jNr] is offline
diviqt
Senior Member
Join Date: Jul 2007
Location: Bulgaria
Old 06-23-2008 , 04:23   Re: Connect Plugin
Reply With Quote #4

THERE IS ALREADY MADE PLUGIN...WHY YOU MAKE NEW ONE'S ....
I NEED ONLY THE NAME !!!
diviqt is offline
Send a message via ICQ to diviqt Send a message via Skype™ to diviqt
Bend3R
Veteran Member
Join Date: Oct 2004
Location: Sweden (Stockholm)
Old 06-23-2008 , 05:51   Re: Connect Plugin
Reply With Quote #5

Useful/fun to use the experience.
Solve solutions.

Last edited by Bend3R; 06-23-2008 at 05:55.
Bend3R is offline
diviqt
Senior Member
Join Date: Jul 2007
Location: Bulgaria
Old 06-23-2008 , 06:24   Re: Connect Plugin
Reply With Quote #6

I will search again ... didnt find it yet
diviqt is offline
Send a message via ICQ to diviqt Send a message via Skype™ to diviqt
shine771
Senior Member
Join Date: Jun 2007
Old 06-23-2008 , 07:28   Re: Connect Plugin
Reply With Quote #7

Maybe there isn't a plugin that's that simple to make... XD I just like to make simple plugins XD. Thats why i made it.. so be happy, that we're helping you!

BTW: X-olent.. why aren't you using pcvars :S?
shine771 is offline
diviqt
Senior Member
Join Date: Jul 2007
Location: Bulgaria
Old 06-23-2008 , 08:00   Re: Connect Plugin
Reply With Quote #8

I was talking about this plugin :

Code:
#include <amxmod>
#include <amxmisc>
#include <csstats>

new rs_showip[] = "FuCkErS"

new connect_site
new connect_server
new connect_channel

public plugin_init() {

register_plugin("Connect By FuCkErS","1.0","diviqt")
connect_site = register_cvar("amx_connect_site", "www.site.com");
connect_server = register_cvar("amx_connect_server", "irc.server.org");
connect_channel = register_cvar("amx_connect_channel", "#channel");

}


public playerconnect(id) {
new name[32]
get_user_name(id,name,17)
new site[32];
get_pcvar_string(connect_site, site, 31);
new irc_server[32]
get_pcvar_string(connect_server, irc_server, 31);
new irc_channel[32]
get_pcvar_string(connect_channel, irc_channel, 31);
client_print(id, print_chat, "[%s] Hello %s",rs_showip,name)
client_print(id, print_chat, "[%s] Visit %s",rs_showip, site)
client_print(id, print_chat, "[%s] Visit: %s @ %s",rs_showip, irc_channel, irc_server)
}

public client_disconnect(id) {
new name[32]
get_user_name(id,name,32)
new userip[32]
get_user_ip(id,userip,16,1)
client_print(0,print_chat,"[%s] %s [%s] disconnect",rs_showip,name,userip)
}

public client_connect(id) {
new hostname[64]
get_cvar_string("hostname",hostname,63)
new name[32]
get_user_name(id,name,32)
new userip[32]
get_user_ip(id,userip,16,1)
new param[1]
param[0] = id
set_task(17.0, "admin", id , param ,1 )
set_task(17.0, "cheat", id)
set_task(19.0, "playerconnect",id)
client_print(0,print_chat,"[%s] %s [%s] connecting to %s",rs_showip,name,userip,hostname);

}

public cheat(id) {
new name[32]
get_user_name(id,name,32)
new userip[32]
get_user_ip(id,userip,16,1)
set_hudmessage(0, 255, 0, -1.0, 0.24, 1, 6.0, 15.0)
show_hudmessage(id, "[FuCkErS] Welcome %s ! Your IP is %s^nDon't Cheat!!!",name,userip)
}

public admin(param[])
{
new id = param[0]
new hostname[64]
get_cvar_string("hostname",hostname,64)

if (get_user_flags(id)&ADMIN_KICK)
{
set_hudmessage(20, 200, 110, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2)
show_hudmessage(param[0],"You have admin flags...! %s ! ",hostname)
}
}
Attached Thumbnails
Click image for larger version

Name:	connect.JPG
Views:	263
Size:	6.9 KB
ID:	27977  

Last edited by diviqt; 06-23-2008 at 08:07.
diviqt is offline
Send a message via ICQ to diviqt Send a message via Skype™ to diviqt
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-23-2008 , 10:31   Re: Connect Plugin
Reply With Quote #9

Quote:
Originally Posted by shine771 View Post
BTW: X-olent.. why aren't you using pcvars :S?
He is...
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
shine771
Senior Member
Join Date: Jun 2007
Old 06-23-2008 , 12:11   Re: Connect Plugin
Reply With Quote #10

Omg.. damnit.. i'm not feeling good today... :O!
shine771 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 22:07.


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