Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1.  
  2. #include <sourcemod>
  3. #include <sdktools>
  4.  
  5. new handle:Timerh
  6.  
  7. public OnPluginStart()
  8. {
  9. RegConsoleCmd("sm_timer", Command_test, "test");
  10. RegConsoleCmd("sm_stop", Command_stop, "Timer stop");
  11. }
  12.  
  13. public Action:Command_test(Client, Args)
  14. {
  15. Timerh=CreateTimer(5.0, timer, Client, TIMER_REPEAT);
  16. }
  17.  
  18. public Action:timer(Handle:timer, any:Client)
  19. {
  20. PrintToChatAll("Timer has worked in server");
  21. }
  22.  
  23. public Action:Command_stop(Client, Args)
  24. {
  25. KillTimer(Timerh);
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement