 |
|
Veteran Member
|

10-06-2010
, 15:54
Re: Verify online users.
|
#10
|
Quote:
Originally Posted by killergirl
PHP Code:
#include <amxmodx>
#include <cstrike>
new t_Score
public plugin_init(){
register_plugin("CT T Switch", "1.0", "Author")
register_event("DeathMsg", "deathmsgevent", "a")
}
public deathmsgevent(){
new iKiller = read_data(1)
new iVictim = read_data(2)
if( get_user_team(iKiller) == 1 )
{
t_Score++
if( t_Score == 10 )
{
if(get_user_team(iKiller) == 1){
cs_set_user_team(iKiller,CS_TEAM_CT)
cs_set_user_team(iVictim,CS_TEAM_T)
}
else{
client_print(0, print_chat, "Something is wrong!")
}
}
else{
return PLUGIN_CONTINUE;
}
}
return PLUGIN_CONTINUE;
}
I'm so stupid, I can't understand what are you guys talking about 
|
Why are you retrieving the killers team twice?
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
|
|
|
|