Raised This Month: $ Target: $400
 0% 

VipMenu, I need little help here.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dende
Member
Join Date: Oct 2013
Old 12-29-2013 , 11:03   VipMenu, I need little help here.
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (vip_hns.sma - 541 views - 3.9 KB)
Dende is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-29-2013 , 12:03   Re: VipMenu, I need little help here.
Reply With Quote #2

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 
            }
        }
    }

__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Dende
Member
Join Date: Oct 2013
Old 12-29-2013 , 14:53   Re: VipMenu, I need little help here.
Reply With Quote #3

Could You or someone add these lines to the .sma file or give me PHP CODE of this plugin?

Thanks.
Dende is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-29-2013 , 15:14   Re: VipMenu, I need little help here.
Reply With Quote #4

Here you go
Attached Files
File Type: sma Get Plugin or Get Source (vip_hns.sma - 568 views - 4.3 KB)
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Dende
Member
Join Date: Oct 2013
Old 12-30-2013 , 04:48   Re: VipMenu, I need little help here.
Reply With Quote #5

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.

Last edited by Dende; 12-30-2013 at 04:57. Reason: bad post
Dende is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 12-30-2013 , 05:25   Re: VipMenu, I need little help here.
Reply With Quote #6

Replace line 170 with this :
PHP Code:
new iWeapon give_item(id"weapon_usp"
__________________
Kia is offline
Dende
Member
Join Date: Oct 2013
Old 12-31-2013 , 07:03   Re: VipMenu, I need little help here.
Reply With Quote #7

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.
Dende is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-31-2013 , 07:27   Re: VipMenu, I need little help here.
Reply With Quote #8

Quote:
Originally Posted by Dende View Post
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 ) ) 


PHP Code:
if(is_user_aliveid ) && get_user_flagsid ) & ADMIN_RESERVATION 
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Dende
Member
Join Date: Oct 2013
Old 01-01-2014 , 14:13   Re: VipMenu, I need little help here.
Reply With Quote #9

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.
Dende 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 12:25.


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