Raised This Month: $ Target: $400
 0% 

New at coding


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ludacriss
BANNED
Join Date: Aug 2010
Old 08-05-2010 , 13:18   New at coding
Reply With Quote #1

Hello!

I got a zombie mod server and i am working on a menu so the human can choose between 6 models.

Can someone fix it and so only humans can open it not zombies and so the models work and the print_chat works.

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <fun>

#define PLUGIN    "Model Changer"
#define AUTHOR    "Ludacriss"
#define VERSION    "1.0"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /menu","PlayerMenu");
}
public 
PlayerMenu(id)
{
    new 
menu menu_create("\r Choose your player model:""menu_handler");
    
menu_additem(menu"\yZoey""\r1"0);
    
menu_additem(menu"\yFrancis""\r2"0);
    
menu_additem(menu"\yBill""\r3"0);
    
menu_additem(menu"\yLouis""\r4"0);
    
menu_additem(menu"\yEllis""\r5"0);
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu0);
}
public 
menu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT)
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    new 
key str_to_num(data);
    switch(
key)
    {
        case 
1:
        {
            
client_print(idprint_chat"You selected Zoey as your player model!");
            
menu_destroy(menu);
            return 
PLUGIN_HANDLED;
        }
        case 
2:
        {
            
client_print(idprint_chat"You selected Francis as your player model!");
            
menu_destroy(menu);
            return 
PLUGIN_HANDLED;
        }
        case 
3:
        {
            
client_print(idprint_chat"You selected Bill as your player model!");
            
menu_destroy(menu);
            return 
PLUGIN_HANDLED;
        }
        case 
4:
        {
            
client_print(idprint_chat"You selected Louis as your player model!");
            
menu_destroy(menu);
            return 
PLUGIN_HANDLED;
        }
        case 
5:
        {
            
client_print(idprint_chat"You selected Ellis as your player model!");
            
menu_destroy(menu);
            return 
PLUGIN_HANDLED;
        }
    }
    
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;


Last edited by Ludacriss; 08-05-2010 at 14:17.
Ludacriss is offline
Shaw
Junior Member
Join Date: Jun 2010
Old 08-05-2010 , 14:22   Re: New at coding
Reply With Quote #2

You're ZombieFreak and got banned. What are you doing back lol.
__________________
Shaw is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 08-06-2010 , 08:48   Re: New at coding
Reply With Quote #3

Quote:
Originally Posted by Shaw View Post
You're ZombieFreak and got banned. What are you doing back lol.
+1
Vechta is offline
Emp0wer
Member
Join Date: Jul 2010
Location: Ukraine mother
Old 08-06-2010 , 14:53   Re: New at coding
Reply With Quote #4

Quote:
Originally Posted by Shaw View Post
You're ZombieFreak and got banned. What are you doing back lol.
Omg is the reason of banning getting interested in zombie mod? Then I was banned not with the stupidest reason on this forum
Emp0wer is offline
Send a message via ICQ to Emp0wer Send a message via Skype™ to Emp0wer
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-06-2010 , 14:59   Re: New at coding
Reply With Quote #5

Quote:
Originally Posted by Emp0wer View Post
Omg is the reason of banning getting interested in zombie mod? Then I was banned not with the stupidest reason on this forum
No, he was banned for Ban Evasion (not the first time). You were banned for Non-Steam (not a stupid reason). I could ban you again for Evading...
__________________
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
Emp0wer
Member
Join Date: Jul 2010
Location: Ukraine mother
Old 08-06-2010 , 15:15   Re: New at coding
Reply With Quote #6

Quote:
Originally Posted by YamiKaitou View Post
No, he was banned for Ban Evasion (not the first time). You were banned for Non-Steam (not a stupid reason). I could ban you again for Evading...
Thx for not banning again, but I have a steam account. And you banned me because of helping non-steam player. Am I not right?
Emp0wer is offline
Send a message via ICQ to Emp0wer Send a message via Skype™ to Emp0wer
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-06-2010 , 15:21   Re: New at coding
Reply With Quote #7

Quote:
Originally Posted by Emp0wer View Post
Thx for not banning again, but I have a steam account. And you banned me because of helping non-steam player. Am I not right?
Don't remember, don't care. The reason I put was "non-steam/non-steam support"

Also, I'm not sure how many times we have to say this, but a user can have as many Steam accounts as they want, we don't care. All we care about is the server.
__________________
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
Old 08-06-2010, 08:47
Afro-Ankan
This message has been deleted by Afro-Ankan. Reason: whrong
Afro-Ankan
Member
Join Date: Jul 2009
Location: Sweden
Old 08-06-2010 , 08:53   Re: New at coding
Reply With Quote #9

now the client_print works, do you want me to add Models to ?

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <fun>
#define PLUGIN    "Model Changer"
#define AUTHOR    "Ludacriss"
#define VERSION    "1.0"
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
 
    
register_clcmd("say /menu","PlayerMenu");
}
public 
PlayerMenu(id)
{
    new 
menu menu_create("\r Choose your player model:""menu_handler");
    
menu_additem(menu"\yZoey""1"0);
    
menu_additem(menu"\yFrancis""2"0);
    
menu_additem(menu"\yBill""3"0);
    
menu_additem(menu"\yLouis""4"0);
    
menu_additem(menu"\yEllis""5"0);
 
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu0);
}
public 
menu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT)
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    new 
key str_to_num(data);
    switch(
key)
    {
        case 
1:
        {
            
client_print(idprint_chat"You selected Zoey as your player model!");
        }
        case 
2:
        {
            
client_print(idprint_chat"You selected Francis as your player model!");
        }
        case 
3:
        {
            
client_print(idprint_chat"You selected Bill as your player model!");
        }
        case 
4:
        {
            
client_print(idprint_chat"You selected Louis as your player model!");
        }
        case 
5:
        {
            
client_print(idprint_chat"You selected Ellis as your player model!");
        }
    }
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;

__________________
My Current Projects:
Pistols vs Pistols Public
Progress [ | | | | | | | | | | ]
Only 10% Completed

Last edited by Afro-Ankan; 08-06-2010 at 08:56.
Afro-Ankan is offline
Send a message via MSN to Afro-Ankan
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 08-06-2010 , 09:03   Re: New at coding
Reply With Quote #10

he's banned, why would you still fix this?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 00:17.


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