Raised This Month: $ Target: $400
 0% 

Homepage connecter


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
koreless
Junior Member
Join Date: Mar 2008
Old 12-28-2008 , 18:42   Homepage connecter
Reply With Quote #1

First, sry for my bad english :)
I search a Amxx plugin for Counter-Strike 1.6 where you can write "/hp" or something else in chat and you connect to the clan homepage.
or when you go on the server you connecting automatical to the clans homepage.
Have somebody a plugin like this?

It would be great :o

Thanks

Mfg Koreless
koreless is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 12-28-2008 , 19:09   Re: Homepage connecter
Reply With Quote #2

I dunno, I guess O/T works.
(This is for AMXX Support only)
__________________
bmann_420 is offline
skinnie
Junior Member
Join Date: Dec 2008
Location: #supercentral
Old 12-28-2008 , 19:42   Re: Homepage connecter
Reply With Quote #3

quit being lazy. @ koreless

http://forums.alliedmods.net/showthread.php?t=24092
__________________
skinnie is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 12-28-2008 , 20:09   Re: Homepage connecter
Reply With Quote #4

Hey,

not tested but i think its functionaly :

PHP Code:
#include <amxmodx>
#include <amxmisc>

#if !defined charsmax
    #define charsmax(%1) sizeof(%1)-1
#endif

new const PLUGINNAME[] = "HP"
new const VERSION[] = "1"
new const AUTHOR[] = "One"

stock surf(idurl[]) {

    new 
html[128]
    
format(html127urlurlurl)

    
show_motd(idhtml"HP.com")

    return 
PLUGIN_CONTINUE
}

public 
cmd_say(id) {
    static 
say_args[64]
    
read_args(say_argscharsmax(say_args))
    
remove_quotes(say_args)

    if(
say_args[0] != '/')
        return 
PLUGIN_CONTINUE

    
if(equali(say_args"/homepage") || equali(say_args"/site") || equali(say_args"/forum") || equali(say_args"/Homepage") || equali(say_args"/website"))
    {
        
surf(id"http://yourdomain.com"// here ur website adress
        
return PLUGIN_CONTINUE
    
}

    return 
PLUGIN_CONTINUE
}

public 
HP_this(id) {
    
client_print(idprint_chat"Type '/homepage' in chat to connect to our Homepage.")
}

public 
client_putinserver(id) {
    
set_task(25.0"HP_this"id)

    return 
PLUGIN_CONTINUE
}

public 
plugin_init() {
    
register_plugin(PLUGINNAMEVERSIONAUTHOR)
    
register_clcmd("say""cmd_say")
    
register_clcmd("say_team""cmd_say")

    new 
Float:anntime 60.0 6.0 // 6 minutes
    
set_task(anntime"HP_this"0""0"b")

For Motd you can use this Motd.

*** Dont change the Cvars to /hp. /hp is normaly used by Stats plugin & u have just the damage show on ur screen, not the homepage.

the players can use this Cvars,:

HTML Code:
/homepage
/site
/forum
/Homepage
/website
Attached Files
File Type: txt motd.txt (66 Bytes, 108 views)
File Type: sma Get Plugin or Get Source (hp.sma - 705 views - 1.3 KB)
__________________

Last edited by YamiKaitou; 12-28-2008 at 20:45.
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Stixsmaster
Veteran Member
Join Date: May 2007
Location: I am all around you...I
Old 12-29-2008 , 12:33   Re: Homepage connecter
Reply With Quote #5

First: This is the wrong place to request anything related to plugins...

Second: Because I was dumb enough to type all after this lil bit below is my share of help...

You could just get the say motd for motd plugin and I bet easily alter it so that if you type /hp or what ever itll open up the MOTD window and then load the clan website...

---Stixsmaster
__________________
Stixsmaster is offline
Send a message via AIM to Stixsmaster Send a message via MSN to Stixsmaster
koreless
Junior Member
Join Date: Mar 2008
Old 01-03-2009 , 07:39   Re: Homepage connecter
Reply With Quote #6

thanks for the posts.
koreless is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 01-03-2009 , 07:50   Re: Homepage connecter
Reply With Quote #7

Quote:
Originally Posted by Stixsmaster View Post
First: This is the wrong place to request anything related to plugins...

Second: Because I was dumb enough to type all after this lil bit below is my share of help...

You could just get the say motd for motd plugin and I bet easily alter it so that if you type /hp or what ever itll open up the MOTD window and then load the clan website...

---Stixsmaster
Hey,

1. i know his problem & i maked a plugin for me like this...but im not using this anymore.this is why i added more say commands there.

2.the command "say /hp" will be used by Stats plugin & i think when u have this plugin active, when u say "/hp" u see a message what u damaged or would be damaged. i think he had 2 ways, ( THINK ) :

1. turning the stats plugin off.

2. add this plugin before the stats plugin.

3. there wasnt any plugin for this & i thinked i can post it here...sry when my post was wrong
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
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 02:05.


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