Raised This Month: $ Target: $400
 0% 

Help with a plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sasukebr
Member
Join Date: Feb 2012
Location: Porto Alegre
Old 06-10-2012 , 18:50   Help with a plugin
Reply With Quote #1

Hello friends can any fixes that error for me
Attached Files
File Type: sma Get Plugin or Get Source (ScorPionS_JB_MENU_PRINCIPAL.sma - 86 views - 1.6 KB)
sasukebr is offline
Send a message via MSN to sasukebr Send a message via Skype™ to sasukebr
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-10-2012 , 19:54   Re: Help with a plugin
Reply With Quote #2

PHP Code:
#include <amxmodx>
new menu

public plugin_init()
{
register_plugin("Jailmenu","1.0","S4sukeBR");
menu menu_create("\r(\w( \yScorPionS \w|\r)\w Menu Principal","func_menu");
menu_additem(menu"\wTerroristas""1"_);
menu_additem(menu"\wContra Terroristas""2"_);
menu_additem(menu"\wEntrar SPEC^n""3"_);

menu_additemmenu"\wBox"
menu_additemmenu"\wFutebol")
menu_additemmenu"\wFreeday")
menu_additemmenu"\wRegraS")
menu_additemmenu"\wLoja")
menu_additemmenu"\wVIP Menu (ADMINS)")

menu_setpropmenuMPROP_NEXTNAME"Prox")
menu_setpropmenuMPROP_BACKNAME"Voltar")
menu_setpropmenuMPROP_EXITNAME"Sair")

register_clcmd("Jail_menu","go_menu");
}
public 
menut_handler(idmenuitem) {
    
    new 
data[6], iName[64];
    new 
iaccesscallback;
    
menu_item_getinfo(menuitemiaccessdata,5iName63callback);
    new 
key str_to_num(data);
    
    switch(
key) {
        case 
1: {
            
engclient_cmd(id"jointeam""1")
            
engclient_cmd(id"joinclass""1")
        }
        case 
2: {
            
engclient_cmd(id"jointeam""2")
            
engclient_cmd(id"joinclass""2")
        }
        case 
3: {
            
engclient_cmd(id"jointeam""5")
            
engclient_cmd(id"joinclass""5")
        }
    }
}

public 
func_menu(idmenukey)
{
key++
if(
key==4client_cmd(id"say /box")
if(
key==5client_cmd(id"say /ball")
if(
key==6client_cmd(id"say /fd")
if(
key==7client_cmd(id"say /shop")
if(
key==8client_cmd(id"say /vipmenu")
}

public 
go_menu(id)
{
menu_display(id,menu)
}

public 
client_authorized(id)
{
client_cmd(id"bind ^"m^" ^"jail_menu^"")
    

errors be gone!

Dude....don't forget to close your brackets!
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
sasukebr
Member
Join Date: Feb 2012
Location: Porto Alegre
Old 06-10-2012 , 20:02   Re: Help with a plugin
Reply With Quote #3

sasukebr is offline
Send a message via MSN to sasukebr Send a message via Skype™ to sasukebr
sasukebr
Member
Join Date: Feb 2012
Location: Porto Alegre
Old 06-10-2012 , 20:29   Re: Help with a plugin
Reply With Quote #4

friend when I press the number one team to go the prisoners will not
sasukebr is offline
Send a message via MSN to sasukebr Send a message via Skype™ to sasukebr
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-10-2012 , 20:53   Re: Help with a plugin
Reply With Quote #5

That is because you don't do anything when you press slot1

Also, remove the slowhacking....
__________________
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
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-10-2012 , 21:33   Re: Help with a plugin
Reply With Quote #6

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

give that a look little buddy. It'll teach you all about menus.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
sasukebr
Member
Join Date: Feb 2012
Location: Porto Alegre
Old 06-10-2012 , 21:40   Re: Help with a plugin
Reply With Quote #7

how can I do this is to get a friend to me that function to the player to change team
sasukebr is offline
Send a message via MSN to sasukebr Send a message via Skype™ to sasukebr
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 06:08.


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