AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   VipMenu, I need little help here. (https://forums.alliedmods.net/showthread.php?t=232354)

Dende 12-29-2013 11:03

VipMenu, I need little help here.
 
1 Attachment(s)
I got vipmenu for Hns Oldstyle server, but I don't know how to make that the menu would appear automaticly for each team different menu. If You could help I would be very grateful. Here's the .sma. of VipMenu.

Thanks.

wickedd 12-29-2013 12:03

Re: VipMenu, I need little help here.
 
Add this to your plugin:

PHP Code:

#include <hamsandwich> 

PHP Code:

RegisterHamHam_Spawn"player""Spawn"true ); 

PHP Code:

public Spawnid )
{
    if(
is_user_aliveid ) )
    {
        switch( 
cs_get_user_teamid ) )
        {
            case 
CS_TEAM_CT:
            {
               
menu_ctid )
            }
            case 
CS_TEAM_T:
            {
                
menu_tid 
            }
        }
    }



Dende 12-29-2013 14:53

Re: VipMenu, I need little help here.
 
Could You or someone add these lines to the .sma file or give me PHP CODE of this plugin?

Thanks.

wickedd 12-29-2013 15:14

Re: VipMenu, I need little help here.
 
1 Attachment(s)
Here you go

Dende 12-30-2013 04:48

Re: VipMenu, I need little help here.
 
Compile failed.

Error 017: Undefined symbol "iWeapon"
Error 001: expected token ";" but found ")"
Error 029: invalid expression, assumed zero
Fatal Error 107: too many error messages on one line

Could You or someone else fix it?

Thanks.

Kia 12-30-2013 05:25

Re: VipMenu, I need little help here.
 
Replace line 170 with this :
PHP Code:

new iWeapon give_item(id"weapon_usp"


Dende 12-31-2013 07:03

Re: VipMenu, I need little help here.
 
Thanks Kia and wickedd, now it compiles without errors. But now the menu appears for everyone, could someone make it would appear only for ADMIN_RESERVATION flag?

Thanks.

wickedd 12-31-2013 07:27

Re: VipMenu, I need little help here.
 
Quote:

Originally Posted by Dende (Post 2078934)
Thanks Kia and wickedd, now it compiles without errors. But now the menu appears for everyone, could someone make it would appear only for ADMIN_RESERVATION flag?

Thanks.

PHP Code:

if(is_user_aliveid ) ) 

:arrow:

PHP Code:

if(is_user_aliveid ) && get_user_flagsid ) & ADMIN_RESERVATION 


Dende 01-01-2014 14:13

Re: VipMenu, I need little help here.
 
Thanks again. I want to ask could you add 50% respawn to the vipmenu for both teams. I mean if VIP in round start picked Respawn and he died, he have a 50% chance to respawn.

Thanks.


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

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