Guest User

Untitled

a guest
Jun 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. public OnMapStart(){
  2. ....
  3. CreateTimer(5.0, CPTimer);
  4. }
  5. public Action:CPTimer(Handle:timer){
  6. new index = -1;
  7. while((index = FindEntityByClassname(index, ("team_control_point_master"))) != -1){
  8. RemoveEdict(index);
  9. }
  10.  
  11. index = -1;
  12.  
  13. while((index = FindEntityByClassname(index, ("trigger_capture_area"))) != -1){
  14. SetEntPropFloat(index, Prop_Data, "m_flCapTime", 0.5);
  15. }
  16. }
Add Comment
Please, Sign In to add comment