Added change_task()

Added server_changelevel forward
Added is_user_admin()
This commit is contained in:
David Anderson 2004-07-18 08:19:20 +00:00
parent 41c7d041df
commit fd9666d068
2 changed files with 12 additions and 1 deletions

View File

@ -114,4 +114,9 @@ stock get_user_wonid(index)
get_user_authid(index,authid,31)
return str_to_num(authid)
}
#endif
#endif
stock is_user_admin(userid)
{
return (get_user_flags(id) & ADMIN_ADMIN)
}

View File

@ -35,6 +35,9 @@ forward plugin_cfg();
/* Function called before plugin unloading (server deactivation) */
forward plugin_end();
/* Function called to handle changelevel */
forward server_changelevel();
/* Called on log message. */
forward plugin_log();
@ -430,6 +433,9 @@ native set_task(Float:time,const function[],id = 0,parameter[]="",len = 0,flags[
* was set in another plugin. */
native remove_task(id = 0, outside = 0);
/* Changes the time of a task */
native change_task(id = 0, Float:newTime=1.0, outside = 0);
/* Returns 1 if task under given id exists. */
native task_exists(id = 0, outside = 0);