Last Update: 30.08.2014;
Desc: This plugin is similar to the console command.
Cvar Commands
Client Commandssay_command(default 1): Enable say commands systems.
Plugin Forwardlist_say(<index=0>): List alaviable say commands.
Natives:ibm_say_main();
Usage: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);
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
Attachment 137453
Attachment 137454
Attachment 137455
Attached Images res1.jpg (92.6 KB) res2.jpg (76.7 KB) res3.jpg (86.2 KB) Attached Files ibm_say.inc (1.2 KB) ibm_say.txt (285 Bytes) Get Plugin or Get Source (saysample.sma - 1.1 KB) Get Plugin or Get Source (ibm_say.sma - 7.7 KB)
Wyświetl pełny artykuł