Quote:
Originally Posted by killergirl
Thank you for fast reply. I solved the problem.
(I have a war server and I want to make additional scripts, to moderate the game if there is no admins online.)
I have a second question about "maximum team score". So is there 2 players, one CT and one T, and somebody reach the maximum score allowed, suddenly both get's a team switch.
Eg. T reach 10 allowed score and he will be changed to CT, and the CT player changed to T, after the switch the game will be restarted.
Any ideas?
|
Look up the DeathMsg event.
PHP Code:
new t_Score;
public deathmsgevent()
{
new iKiller = read_data(1)
if( get_user_team(iKiller) == 1 )
{
t_Score++
if( t_Score == 10 )
{
//end the round the way that best fits you
}
}
}
use get_user_team(iKiller) == 2 to retrieve CT's, and increase a variable the same way. Hope you understand.
__________________