Raised This Month: $ Target: $400
 0% 

BothTeams by cvar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 08-07-2010 , 15:22   Re: BothTeams by cvar
Reply With Quote #1

PHP Code:
public cmdShow(id) { 
    new 
team
    if(
get_pcvar_num(cvar)) { 
        
team 1
    } 
    else if(
get_pcvar_num(cvar) == 2) { 
        
team 2
    } 
    else if(
get_pcvar_num(cvar) == 3) { 
        
team 0
    } 
-->
PHP Code:
public cmdShow(id) {
    
team get_pcvar_num(cvar)
    } 
Raddish is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 08-07-2010 , 15:35   Re: BothTeams by cvar
Reply With Quote #2

I think you have to do this :

PHP Code:
if(get_user_team(id) == team


PHP Code:
if( ( get_user_team(id) ) == team
Not tested.
__________________
You can do anything you set your mind to, man.

Devil259 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 00:10.


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