 |
|
BANNED
Join Date: Jan 2013
Location: https://t.me/pump_upp
|

06-04-2018
, 12:31
Re: Random Command every 10 sec
|
#2
|
What this pause and unpause? Random player kick 20sec. This code is good, or not?
PHP Code:
#include < amxmodx >
public plugin_init()
{
register_plugin("PausePlugin","1.0","Deidara");
register_logevent("round_end", 2, "1=Round_End");
register_event("TextMsg", "round_restart", "a", "2&#Game_C", "2&#Game_w");
register_logevent("round_start", 2, "1=Round_Start")
register_logevent("round_draw", 2, "1=Round_Draw");
}
public round_start(id)
{
set_task ( 20.0, "x1", id );
}
public x1()
{
unpause("ac","amx_kick");
}
Quote:
Originally Posted by 4ever16
Not the perfect one but you can remake this.
Instead of "unpause("ac","a2.amxx"); " you make the command you want to run.
When freezetime is over 1 second later it will run a command, 20 seconds later it will run command 2, 40 seconds later it will run command 3.
PHP Code:
#include < amxmodx >
public plugin_init()
{
register_plugin("PausePlugin","1.0","Deidara");
register_logevent("round_end", 2, "1=Round_End");
register_event("TextMsg", "round_restart", "a", "2&#Game_C", "2&#Game_w");
register_logevent("round_start", 2, "1=Round_Start")
register_logevent("round_draw", 2, "1=Round_Draw");
}
public round_start(id)
{
set_task ( 1.0, "x1", id );
set_task ( 20.0, "x2", id );
set_task ( 40.0, "x3", id );
}
public x1()
{
unpause("ac","a2.amxx");
}
public x2()
{
pause("ac","a2.amxx");
}
public x3()
{
your command;
}
|
|
|
|
|