Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdktools>
- new handle:Timerh
- public OnPluginStart()
- {
- RegConsoleCmd("sm_timer", Command_test, "test");
- RegConsoleCmd("sm_stop", Command_stop, "Timer stop");
- }
- public Action:Command_test(Client, Args)
- {
- Timerh=CreateTimer(5.0, timer, Client, TIMER_REPEAT);
- }
- public Action:timer(Handle:timer, any:Client)
- {
- PrintToChatAll("Timer has worked in server");
- }
- public Action:Command_stop(Client, Args)
- {
- KillTimer(Timerh);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement