Raised This Month: $ Target: $400
 0% 

Check


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 07-29-2010 , 07:42   Re: Check
Reply With Quote #1

Maybe this would more fit in 'request' section.

Quote:
-If ct loose round change player
-If ct win round change player
If (ct loose or ct win) = if roundend
by 'change player' you mean team swap? and of which player?
Maybe this way is easier?

Quote:
If ct left game pick 1 terror to ct team
PHP Code:
public player_disconnect(id)
{
new 
CsTeams:userTeam cs_get_user_team(id)
if (
userTeam == CS_TEAM_CT)
{
    
kupa()

}
}

public 
kupa()
{
            new 
Float:new_id random_num(1,32)
            new 
CsTeams:new_userTeam(new_id)
            if (
new_userTeam == CS_TEAM_T)
                                    
cs_set_user_team(new_idCS_TEAM_CT)
                                    return 
PLUGIN_HANDLED
            
else kupa()

You sure when left game? I'd better say when he lefts team. (for example he goes to for spect.)
I dunno, is there any register for change team?

Last edited by Gadzislaw007; 07-29-2010 at 08:21.
Gadzislaw007 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:15.


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