Raised This Month: $ Target: $400
 0% 

[HOWTO] How can i let a menu ...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 06-28-2009 , 08:53   [HOWTO] How can i let a menu ...
Reply With Quote #1

1. Appear when the player (re)spawns
2. If menu 1 is done, show menu2, menu3, ...
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-28-2009 , 08:57   Re: [HOWTO] How can i let a menu ...
Reply With Quote #2

1. Hook Ham_Spawn
2. in handle, when player selcts something, show menu2, in handle2, show menu3 ?
__________________
xPaw is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 06-28-2009 , 09:26   Re: [HOWTO] How can i let a menu ...
Reply With Quote #3

Example for Ham_Spawn Please

Its the first time i use HamSandWich
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-28-2009 , 09:31   Re: [HOWTO] How can i let a menu ...
Reply With Quote #4

search and you will find
__________________
xPaw is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 06-28-2009 , 09:34   Re: [HOWTO] How can i let a menu ...
Reply With Quote #5

PHP Code:
public plugin_init()
{
       
//...
       
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
}

public 
fw_PlayerSpawn_Post(id)
{
    if (!
is_user_alive(id))
        return;
        
    
// here, code

__________________
alan_el_more is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 06-28-2009 , 09:35   Re: [HOWTO] How can i let a menu ...
Reply With Quote #6

Thanks

So if this is case 1:
PHP Code:
            give_item(id"weapon_m4a1"),
    
AwesomeMenu2(id
will it, after the m4a1 is given go to the second menu? [I think so...]
__________________

Last edited by crazyeffect; 06-28-2009 at 09:40.
crazyeffect is offline
Send a message via MSN to crazyeffect
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-28-2009 , 09:46   Re: [HOWTO] How can i let a menu ...
Reply With Quote #7

Yea
__________________
xPaw is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 06-28-2009 , 10:01   Re: [HOWTO] How can i let a menu ...
Reply With Quote #8

Last question:

How can i make like "Take Previous Weapons"?
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
znovit
Member
Join Date: Mar 2009
Location: Behind you :=
Old 07-01-2009 , 04:30   Re: [HOWTO] How can i let a menu ...
Reply With Quote #9

Look in csdm code, or am I totally wrong ?
__________________
znovit is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 07-01-2009 , 05:56   Re: [HOWTO] How can i let a menu ...
Reply With Quote #10

Quote:
Originally Posted by crazyeffect View Post
Last question:

How can i make like "Take Previous Weapons"?
Save the last selected points in an Array.
On every respawn you just give him the weapons from the array.
__________________
DA 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 15:31.


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