Raised This Month: $ Target: $400
 0% 

Show Menu Only after player choose team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-11-2014 , 15:52   Re: Show Menu Only after player choose team
Reply With Quote #2

You can just check if the player is alive.

PHP Code:
public showmenu(id)
{
    if( 
is_user_connected(id))
    {
        
Code Here
    
}



PHP Code:
public showmenu(id)
{
    if( 
is_user_alive(id))
    {
        
Code Here
    
}

If you want show to CT and TT different menus, you can use cs_get_user_team or get_user_team.

Edit:If you want to show them a menu after they select a team even if they're dead you can use cs_get_user_team or get_user_team also.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 05-11-2014 at 15:56.
wickedd is offline
 



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 09:38.


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