AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HOWTO] How can i let a menu ... (https://forums.alliedmods.net/showthread.php?t=95877)

crazyeffect 06-28-2009 08:53

[HOWTO] How can i let a menu ...
 
1. Appear when the player (re)spawns
2. If menu 1 is done, show menu2, menu3, ...

xPaw 06-28-2009 08:57

Re: [HOWTO] How can i let a menu ...
 
1. Hook Ham_Spawn
2. in handle, when player selcts something, show menu2, in handle2, show menu3 ?

crazyeffect 06-28-2009 09:26

Re: [HOWTO] How can i let a menu ...
 
Example for Ham_Spawn Please :oops:

Its the first time i use HamSandWich

xPaw 06-28-2009 09:31

Re: [HOWTO] How can i let a menu ...
 
search and you will find

alan_el_more 06-28-2009 09:34

Re: [HOWTO] How can i let a menu ...
 
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



crazyeffect 06-28-2009 09:35

Re: [HOWTO] How can i let a menu ...
 
Thanks :D

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? :D [I think so...]

xPaw 06-28-2009 09:46

Re: [HOWTO] How can i let a menu ...
 
Yea

crazyeffect 06-28-2009 10:01

Re: [HOWTO] How can i let a menu ...
 
Last question:

How can i make like "Take Previous Weapons"?

znovit 07-01-2009 04:30

Re: [HOWTO] How can i let a menu ...
 
Look in csdm code, or am I totally wrong ?

DA 07-01-2009 05:56

Re: [HOWTO] How can i let a menu ...
 
Quote:

Originally Posted by crazyeffect (Post 859278)
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.


All times are GMT -4. The time now is 15:31.

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