Raised This Month: $32 Target: $400
 8% 

[HELP]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 10-22-2012 , 14:04   [HELP]
Reply With Quote #1

This code very good compile.But it doesn't work.

Where is the problem?

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "Tur Sonu Takim Degistir"
#define VERSION "1.0"
#define AUTHOR "Optimist"

new tursayisi=0

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_logevent("TurSonu"2"1=Round_End")
}

public 
TurSonu() {
    
tursayisi++
    
    if(
tursayisi==15)
    {
        new 
oyuncular[32], numoyuncu
        get_players
(oyuncularnum)
        new 
takim[32]
        for(new 
i;i<num;i++) 
        {
            
oyuncu=oyuncular[i]
            
get_user_team(oyuncutakim31)
        
            if(
equali(takim"Terrorist")) cs_set_user_team(oyuncuCS_TEAM_CT)
        
            else if(
equali(takim"CT")) cs_set_user_team(oyuncuCS_TEAM_T)
        }
    }
    

EDIT:

Plugin Function: End of the tour the team change.
__________________

Last edited by Erdener; 10-23-2012 at 07:26.
Erdener 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 23:17.


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