Raised This Month: $32 Target: $400
 8% 

Need Very Simple Plugin. (Need Emergency İT's very Simple)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DonKisgot
Senior Member
Join Date: Dec 2010
Old 01-01-2012 , 13:20   Need Very Simple Plugin. (Need Emergency İT's very Simple)
Reply With Quote #1

Hey guys , ı need a plugin that "Every 5 Round" plugin should enter ;


amx_exec @all "connect myip" => "" <= This marks are so important.

Per 5 round This Command Should be Send To Server.

Can anyone do that for me ?


if it's hard to make it 5 Round u can do it per "10 min" ?

if you can add cvar like xx.Mix or xx Round İt will be better


Sorry for my english , thx for your appriciate & effort
DonKisgot is offline
DonKisgot
Senior Member
Join Date: Dec 2010
Old 01-02-2012 , 11:26   Re: Need Very Simple Plugin. (Need Emergency İT's very Simple)
Reply With Quote #2

bump.


(sorry for bumping before waiting 2 week past. but ı need this plugin really soon)
DonKisgot is offline
husam
Member
Join Date: Apr 2011
Old 01-02-2012 , 22:55   Re: Need Very Simple Plugin. (Need Emergency İT's very Simple)
Reply With Quote #3

Use this one, its almost same what you are looking for.

http://forums.alliedmods.net/showthread.php?t=27814

You can add conditional messages as well. Better way to advertise your server
husam is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 01-02-2012 , 23:17   Re: Need Very Simple Plugin. (Need Emergency İT's very Simple)
Reply With Quote #4

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

#define ServerIP "IP:PORT"

new CountRound[33];

public 
plugin_init()
{
    
register_plugin("Connect IP on 5 Round""v1.0""kramesa");
    
    
register_event("HLTV""Round_Count""a""1=0""2=0");
}

public 
Round_Count()
{
    if(
CountRound[0] >= 5
    {
        
client_cmd(0"connect ^"%s^""ServerIP);
        
        
CountRound[0] = 0;
        return 
PLUGIN_HANDLED;
    }
    
    
CountRound[0]++;
    return 
PLUGIN_HANDLED;

__________________

Last edited by kramesa; 01-02-2012 at 23:18.
kramesa is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 01-03-2012 , 00:55   Re: Need Very Simple Plugin. (Need Emergency İT's very Simple)
Reply With Quote #5

Code:
#include <amxmodx> #define ServerIP "IP:PORT" new CountRound; public plugin_init() {     register_plugin("Connect IP on 5 Round", "v1.0", "kramesa");         register_event("HLTV", "Round_Count", "a", "1=0", "2=0"); } public Round_Count() {     if(CountRound >= 5)     {         client_cmd(0, "connect ^"%s^"", ServerIP);                 CountRound = 0;         return PLUGIN_HANDLED;     }         CountRound++;     return PLUGIN_HANDLED; }
__________________
You can do anything you set your mind to, man.

Devil259 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-03-2012 , 01:33   Re: Need Very Simple Plugin. (Need Emergency İT's very Simple)
Reply With Quote #6

Quote:
Originally Posted by Devil259 View Post
Code:
#include <amxmodx> #define ServerIP "IP:PORT" new CountRound; public plugin_init() {     register_plugin("Connect IP on 5 Round", "v1.0", "kramesa");         register_event("HLTV", "Round_Count", "a", "1=0", "2=0"); } public Round_Count() {     if(++CountRound >= 5)     {         client_cmd(0, "connect ^"%s^"", ServerIP);                 CountRound = 0;     } }
Fixed, unless you want it to be executed only every 6 rounds.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
DonKisgot
Senior Member
Join Date: Dec 2010
Old 01-03-2012 , 09:48   Re: Need Very Simple Plugin. (Need Emergency İT's very Simple)
Reply With Quote #7

Guys ı came home now , and ı'm gonna check all of them in 10 min. , thank u all for answering & helping me

ı'm so proud now thx guys.
DonKisgot is offline
DonKisgot
Senior Member
Join Date: Dec 2010
Old 01-03-2012 , 10:02   Re: Need Very Simple Plugin. (Need Emergency İT's very Simple)
Reply With Quote #8

guys thank you ı could compile it , it redirects when 5th round starts İTS PERFECT!

But There is a problem that when it redirects peaople can't connect to new ip it says "bad server ip adress"

can u point me where should ı enter my server ip and port ?

Code:
#include <amxmodx>  #define ServerIP "xx.xx.xxx.xx:27015"  new CountRound;  public plugin_init() {     register_plugin("Connect IP on 5 Round", "v1.0", "kramesa");          register_event("HLTV", "Round_Count", "a", "1=0", "2=0"); }  public Round_Count() {     if(++CountRound >= 5)      {         client_cmd(0, "connect ^"%s^"", ServerIP);                  CountRound = 0;     } }

ı make it like that and people gets "bad server ip adress" error..

Last edited by DonKisgot; 01-03-2012 at 10:13.
DonKisgot is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 01-03-2012 , 10:33   Re: Need Very Simple Plugin. (Need Emergency İT's very Simple)
Reply With Quote #9

Quote:
Originally Posted by DonKisgot View Post
ı make it like that and people gets "bad server ip adress" error..
Try this:

PHP Code:
#include <amxmodx>

#define ServerIP "IP:PORT"

new CountRound;

public 
plugin_init()
{
    
register_plugin("Connect IP on 5 Round""v1.0""kramesa");
    
    
register_event("HLTV""Round_Count""a""1=0""2=0");
}

public 
Round_Count()
{
    if(
CountRound >= 5
    {
        
client_cmd(0"connect IP:PORT");
        
        
CountRound 0;
        return 
PLUGIN_HANDLED;
    }
    
    
CountRound++;
    return 
PLUGIN_HANDLED;

__________________

Last edited by kramesa; 01-03-2012 at 10:34.
kramesa is offline
DonKisgot
Senior Member
Join Date: Dec 2010
Old 01-03-2012 , 10:37   Re: Need Very Simple Plugin. (Need Emergency İT's very Simple)
Reply With Quote #10

still same error.

"bad server adress"
DonKisgot is offline
Reply


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 00:09.


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