Added change_task()
Added server_changelevel forward Added is_user_admin()
This commit is contained in:
parent
41c7d041df
commit
fd9666d068
|
@ -115,3 +115,8 @@ stock get_user_wonid(index)
|
|||
return str_to_num(authid)
|
||||
}
|
||||
#endif
|
||||
|
||||
stock is_user_admin(userid)
|
||||
{
|
||||
return (get_user_flags(id) & ADMIN_ADMIN)
|
||||
}
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user