added get_cmdaccess()

This commit is contained in:
David Anderson
2006-09-10 22:16:04 +00:00
parent 2df8b4269e
commit 3c379469d5
2 changed files with 107 additions and 40 deletions

View File

@ -26,6 +26,7 @@ Core_Natives()
register_native("fsqroot", "__fsqroot")
register_native("fpower", "__fpower")
register_native("flog", "__flog")
register_native("get_cmdaccess", "__get_cmdaccess")
}
public __VelocityByAim(plid, num)
@ -180,3 +181,19 @@ public Float:__flog(plid, num)
return floatlog(value, base)
}
//get_cmdaccess(cmd[], accessflags[], len)
public __get_cmdaccess(plid, num)
{
new command[32], accessflags[32]
new ret
get_string(1, command, 31)
if ((ret=get_cmdaccess(command, accessflags, 31)))
{
set_string(2, accessflags, get_param(3))
}
return ret
}