Code: Select all
public touch(toucher, touched) { static team_toucher, team_touched team_toucher = get_user_team(toucher) team_touched = get_user_team(touched) if(team_toucher == 2 && team_touched == 1 ) { static flags flags = entity_get_int(touched, EV_INT_flags) if(!(flags & FL_FROZEN)) entity_set_int(touched, EV_INT_flags, flags | FL_FROZEN) } else if(team_toucher == 1 && team_touched == 1) { static flags flags = entity_get_int(touched, EV_INT_flags) if(flags & FL_FROZEN) entity_set_int(touched, EV_INT_flags, flags & ~FL_FROZEN) } }}
Kaip sužinoti kada liks 1 nepagautas teroristas ir kada visi sugaudyti?