Raised This Month: $ Target: $400
 0% 

Menu problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pankiller6
Member
Join Date: May 2009
Old 03-01-2010 , 11:16   Menu problem
Reply With Quote #1

Can someone make example how to make command to use like 5 times in map?
pankiller6 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-01-2010 , 11:32   Re: Menu problem
Reply With Quote #2

Explain a little more.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
pankiller6
Member
Join Date: May 2009
Old 03-01-2010 , 11:37   Re: Menu problem
Reply With Quote #3

Like i have a command to make zombie
and i want that he can use that command only 6 times in map
pankiller6 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-01-2010 , 11:41   Re: Menu problem
Reply With Quote #4

Code:
#include <amxmodx> #define MAX_PLAYERS 32 #define ALLOWED_AMOUNT  6 new iAmount[MAX_PLAYERS+1] public plugin_init() {     register_plugin( "Your Plugin", "1.0", "You" )         register_clcmd( "zombiemake", "CMD_MakeZombie" ) } public CMD_MakeZombie( id ) {     if( iAmount[id] >= ALLOWED_AMOUNT )     {         // Executed when he's gone past the limit, put your text here                 return PLUGIN_HANDLED;     }     else     {         iAmount[id]++                 // Your code     }     return PLUGIN_HANDLED; }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT

Last edited by wrecked_; 03-01-2010 at 11:53.
wrecked_ is offline
pankiller6
Member
Join Date: May 2009
Old 03-01-2010 , 11:46   Re: Menu problem
Reply With Quote #5

Where to put text if he tries 7 time and plugin doesnt let him...
pankiller6 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-01-2010 , 11:50   Re: Menu problem
Reply With Quote #6

In the first check where it says
Code:
if( iAmount[id] >= ALLOWED_AMOUNT )
that's what gets executed if he reaches the limit.

Edited my code post.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
pankiller6
Member
Join Date: May 2009
Old 03-01-2010 , 11:55   Re: Menu problem
Reply With Quote #7

Why this dont work?

Last edited by pankiller6; 03-26-2010 at 18:36.
pankiller6 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-01-2010 , 12:01   Re: Menu problem
Reply With Quote #8

What part isn't working?
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
pankiller6
Member
Join Date: May 2009
Old 03-01-2010 , 12:06   Re: Menu problem
Reply With Quote #9

Works perfect thanks i fixed.

How to make like in this menu if i want to make someone nemesis starts vote if more than 50% than on next round he will be nemesis

Last edited by pankiller6; 03-26-2010 at 18:37.
pankiller6 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-01-2010 , 12:15   Re: Menu problem
Reply With Quote #10

I've never touched nor do I ever plan to touch those nemesis / ZP mods. Go check out the New AMXX Menu System Tutorial by Emp`, it has vote menus.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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:38.


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