That isnt the actual code im using currently. I wanted the task to be auto-set on every round. Here's the code again but more exact :
PHP Code:
#define TASKID_LOL 100
public plugin_init() {
register_event("HLTV", "event_new_round", "a", "1=0", "2=0")
}
public event_new_round(id) {
set_task(13.0, "LOL", TASKID_LOL+id)
}
public LOL( id )
{
if ( is_user_connected( id ) )
{
new CsTeams:userTeam = cs_get_user_team( id )
if( userTeam == CS_TEAM_T )
client_print(id, print_chat, "[LOL] You are a terrorist.")
else if( userTeam == CS_TEAM_T )
client_print(id, print_chat, "[LOL] You are a counter-terrorist.")
}
}
__________________