Raised This Month: $51 Target: $400
 12% 

Fix Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mix97
Junior Member
Join Date: Aug 2011
Old 11-03-2011 , 05:06   Fix Plugin
Reply With Quote #1

I puted IP and name of server when i compiled but it still dosent work pls help

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

#include <amxmodx>
#include <amxmisc>
#include <colorchat>

#define PLUGIN "[xREDIRECT]"
#define VERSION "1.0"
#define AUTHOR "Mix97"

new nick[33]

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("say /server", "ConnectServer")

register_clcmd("say_team /server", "ConnectServer")

// Add your code here...
}

public ConnectServer(id)
{
new menu = menu_create("Choose Server", "ConnectServer1")
menu_additem(menu, "Name Of Server", "1", 0)
menu_additem(menu, "Name Of Server", "2", 0)
menu_additem(menu, "Name Of Server", "3", 0)
menu_additem(menu, "Name Of Server", "4", 0)
menu_additem(menu, "Name Of Server", "5", 0)
menu_additem(menu, "Name Of Server", "6", 0)
}


public ConnectServer1(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)

}
menu_display(id, menu)
switch(item)
{
case 0:
{
console_print(id, "connect IP")
ColorChat(0, GREEN, "[xREDIRECT] ^1%s connected to Name Of Server.", nick)
}

case 1:
{
console_print(id, "connect IP")
ColorChat(0, GREEN, "[xREDIRECT] ^1%s connected to Name Of Server.", nick)
}

case 2:
{
console_print(id, "connect IP")
ColorChat(0, GREEN, "[xREDIRECT] ^1%s connected to Name Of Server.", nick)
}

case 3:
{
console_print(id, "connect IP")
ColorChat(0, GREEN, "[xREDIRECT] ^1%s connected to Name Of Server.", nick)
}

case 4:
{
console_print(id, "connect IP")
ColorChat(0, GREEN, "[xREDIRECT] ^1%s connected to Name Of Server.", nick)
}

case 5:
{
console_print(id, "connect IP")
ColorChat(0, GREEN, "[xREDIRECT] ^1%s connected to Name Of Server.", nick)
}
}
}


Mix97 is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 11-03-2011 , 05:17   Re: Fix Plugin
Reply With Quote #2

console_print(id, "connect IP") change to client_cmd(id, "connect IP")
__________________
kiki33hun is offline
Mix97
Junior Member
Join Date: Aug 2011
Old 11-03-2011 , 05:19   Re: Fix Plugin
Reply With Quote #3

il try thanks...
Mix97 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-03-2011 , 06:30   Re: Fix Plugin
Reply With Quote #4

Put an explicit title please.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 11-03-2011, 07:07
Pattinho
This message has been deleted by Pattinho.
AlgoChikitito
BANNED
Join Date: Feb 2011
Location: Espańa
Old 11-03-2011 , 09:13   Re: Fix Plugin
Reply With Quote #5

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

#include <amxmodx>
#include <amxmisc>
#include <colorchat>

#define PLUGIN "[xREDIRECT]"
#define VERSION "1.0"
#define AUTHOR "Mix97"

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_clcmd("say /server""ConnectServer")

    
register_clcmd("say_team /server""ConnectServer")

}

public 
ConnectServer(id)
{
    new 
menu menu_create("Choose Server""ConnectServer1")
    
menu_additem(menu"Name Of Server""1"0)
    
menu_additem(menu"Name Of Server""2"0)
    
menu_additem(menu"Name Of Server""3"0)
    
menu_additem(menu"Name Of Server""4"0)
    
menu_additem(menu"Name Of Server""5"0)
    
menu_additem(menu"Name Of Server""6"0)
}


public 
ConnectServer1(idmenuitem
{
    new 
nick[33]
    
get_user_name id nick 32 )
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
    }
    
menu_display(idmenu)
    switch(
item)
    {
        case 
1:
        {
            
client_cmd(id"connect IP")
            
ColorChat(0GREEN"[xREDIRECT] ^1%s connected to Name Of Server."nick)
        }
        case 
2:
        {
            
client_cmd(id"connect IP")
            
ColorChat(0GREEN"[xREDIRECT] ^1%s connected to Name Of Server."nick)
        }
        case 
3:
        {
            
client_cmd(id"connect IP")
            
ColorChat(0GREEN"[xREDIRECT] ^1%s connected to Name Of Server."nick)
        }
        case 
4:
        {
            
client_cmd(id"connect IP")
            
ColorChat(0GREEN"[xREDIRECT] ^1%s connected to Name Of Server."nick)
        }
        case 
5:
        {
            
client_cmd(id"connect IP")
            
ColorChat(0GREEN"[xREDIRECT] ^1%s connected to Name Of Server."nick)
        }
        case 
6:
        {
            
client_cmd(id"connect IP")
            
ColorChat(0GREEN"[xREDIRECT] ^1%s connected to Name Of Server."nick)
        }
    }
    return 
PLUGIN_HANDLED

AlgoChikitito is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 11-03-2011 , 09:41   Re: Fix Plugin
Reply With Quote #6

no "menu_display" how do you expect the menu to show up ?
MyPc is offline
sake
Senior Member
Join Date: Jul 2011
Old 11-03-2011 , 18:51   Re: Fix Plugin
Reply With Quote #7

Quote:
#define PLUGIN "[xREDIRECT]"
#define VERSION "1.0"
#define AUTHOR "Mix97"
I don't think xOR will like this.
__________________

Last edited by sake; 11-03-2011 at 18:52.
sake is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 11-03-2011 , 19:00   Re: Fix Plugin
Reply With Quote #8

Quote:
Originally Posted by sake View Post
I don't think xOR will like this.
Mix97 has already had one account banned for posting plugins that werent his..lol
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
MyPc
Senior Member
Join Date: Sep 2011
Old 11-04-2011 , 01:04   Re: Fix Plugin
Reply With Quote #9

Quote:
Originally Posted by sake View Post
I don't think xOR will like this.
Quote:
Originally Posted by joshknifer View Post
Mix97 has already had one account banned for posting plugins that werent his..lol
I saw the xREDIRECT code and its not like this code.
This code look very simple nothing special in this code.
XREDIRECT have much more advanced stuff ..
MyPc is offline
sake
Senior Member
Join Date: Jul 2011
Old 11-04-2011 , 04:52   Re: Fix Plugin
Reply With Quote #10

He should get another name for it.
__________________
sake 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 08:35.


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