Raised This Month: $ Target: $400
 0% 

[Help] Count player connecting ,etc....


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 05-13-2010 , 11:30   Re: [Help] Count player connecting ,etc....
Reply With Quote #1

Quote:
Originally Posted by Exolent[jNr] View Post
PHP Code:
switch( get_user_team(iPlayer ))
{
    case 
0: {
        
// unassigned
    
}
    case 
1: {
        
// terrorist
    
}
    case 
2: {
        
// counter-terrorist
    
}
    case 
3: {
        
// spectator
    
}

I think should be like this :
PHP Code:
switch( get_user_team(iPlayer ))
{
    case 
0: {
        
// unassigned,spectator
    
}
    case 
1: {
        
// terrorist
    
}
    case 
2: {
        
// counter-terrorist
    
}

__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-13-2010 , 18:10   Re: [Help] Count player connecting ,etc....
Reply With Quote #2

Quote:
Originally Posted by K.K.Lv View Post
I think should be like this :
PHP Code:
switch( get_user_team(iPlayer ))
{
    case 
0: {
        
// unassigned,spectator
    
}
    case 
1: {
        
// terrorist
    
}
    case 
2: {
        
// counter-terrorist
    
}

You think wrong.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 05-14-2010 , 00:35   Re: [Help] Count player connecting ,etc....
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
You think wrong.
can you tell me why my think is wrong ?

i have remembered Arkshine had shown a example, and I test it !

PHP Code:
register_clcmd("say test""CmdTest")
 
public 
CmdTest(id)
{
    new 
team get_user_team(id)
    
client_print(idprint_chat"you team is %i"team)

so, when my team is on unassigned or spectator , team is equal "0"
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
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 03:50.


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