Jump to content

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Posted Image Posted Image

Guest Message by DevFuse
 

Photo

Advanced Say Commands(v1.0) + Api


  • You cannot start a new topic
  • Please log in to reply
No replies to this topic

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7,516
  • Lokalizacja:AMXX.PL
Offline

Posted 30.08.2014 15:59

Version: 1.0
Last Update: 30.08.2014;
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



Attachment 137453
Attachment 137454
Attachment 137455



Attached Images Posted Imageres1.jpg (92.6 KB) Posted Imageres2.jpg (76.7 KB) Posted Imageres3.jpg (86.2 KB) Attached Files Posted Imageibm_say.inc (1.2 KB) Posted Imageibm_say.txt (285 Bytes) Posted ImageGet Plugin or Get Source (saysample.sma - 1.1 KB) Posted ImageGet Plugin or Get Source (ibm_say.sma - 7.7 KB)

Wyświetl pełny artykuł




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users