|
Plugin Info:
|
Modification: ALL
Category: General Purpose
|
|
Member
|

08-30-2014
, 10:59
Advanced Say Commands(v1.2) + Api
|
#1
|
Version: 1.2
Last Update: 06.11.2018;
Desc: This plugin is similar to the console command.
Cvar Commands
say_command(default 1): Enable say commands systems.
Client Commands
list_say(<index=0>): List alaviable say commands.
Plugin Forward
ibm_say_main();
Natives:native register_saycmd(cmdname[], function[], accessflag = -1, len = 0, context[] = "", CmdInfo[] = "", PluginPrefix[] = "", bool:ShowAll=false, bool:NoHandleOnError=false, bool:ShowSuccessMsg=true);
native get_say_argv(index, OutPut[], len);
Usage:
PHP Code:
public ibm_say_main() { register_saycmd("map", "say_map", ADMIN_MAP, 1, "<Mapname>: Change map", "info", "[XP] ", false, false, true); register_saycmd("changemap|changelevel", "say_map", ADMIN_MAP, 1, "<Mapname>: Change map", "info", "[XP] ", false, false, true); } public say_map(id, count, info[]) { new Arg1[100]; get_say_argv(1, Arg1, 99); client_cmd(id, "amx_map %s", Arg1); return PLUGIN_HANDLED; }
Screen
History
- Fixed An Error(08.92014)
- Added get_say_argc native
- added // prefix(if say text starts with //, message is sent to console.
Last edited by LtIbrahim; 11-06-2018 at 05:41.
Reason: Updated
|
|
|
|