Raised This Month: $32 Target: $400
 8% 

Advanced Say Commands(v1.2) + Api


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
LtIbrahim
Member
Join Date: Feb 2014
Old 08-30-2014 , 10:59   Advanced Say Commands(v1.2) + Api
Reply With Quote #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_MAP1"<Mapname>: Change map""info""[XP] "falsefalsetrue);
    
register_saycmd("changemap|changelevel""say_map"ADMIN_MAP1"<Mapname>: Change map""info""[XP] "falsefalsetrue);
}
public 
say_map(idcountinfo[])
{
    new 
Arg1[100];
    
get_say_argv(1Arg199);
    
client_cmd(id"amx_map %s"Arg1);
    return 
PLUGIN_HANDLED;

Screen

Name:  res1.jpg
Views: 4771
Size:  92.6 KB
Name:  res2.jpg
Views: 4520
Size:  76.7 KB
Name:  res3.jpg
Views: 1482
Size:  86.2 KB

History
  • Fixed An Error(08.92014)
  • Added get_say_argc native
  • added // prefix(if say text starts with //, message is sent to console.


Attached Files
File Type: sma Get Plugin or Get Source (saysample.sma - 1040 views - 1.1 KB)
File Type: txt ibm_say.txt (285 Bytes, 414 views)
File Type: inc ibm_say.inc (1.3 KB, 262 views)
File Type: sma Get Plugin or Get Source (ibm_say.sma - 753 views - 8.9 KB)

Last edited by LtIbrahim; 11-06-2018 at 05:41. Reason: Updated
LtIbrahim is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-30-2014 , 11:45   Re: Advanced Say Commands(v1.0) + Api
Reply With Quote #2

I didn't read all of your code, but:

1. Use formatex, not format.
2. Not every function need public in front of it.
__________________

Last edited by HamletEagle; 08-30-2014 at 11:46.
HamletEagle is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 08-30-2014 , 12:40   Re: Advanced Say Commands(v1.0) + Api
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=69913
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-30-2014 , 13:20   Re: Advanced Say Commands(v1.0) + Api
Reply With Quote #4

Quote:
Originally Posted by Emp` View Post
Lol, Emp is back.
__________________
HamletEagle is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-30-2014 , 15:15   Re: Advanced Say Commands(v1.0) + Api
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
Lol, Emp is back.
Why? I think he is never away from the forum.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
LtIbrahim
Member
Join Date: Feb 2014
Old 11-06-2018 , 05:16   Re: Advanced Say Commands(v1.2) + Api
Reply With Quote #6

The addon is updated.
LtIbrahim is offline
X3.
Junior Member
Join Date: Sep 2018
Old 11-06-2018 , 21:23   Re: Advanced Say Commands(v1.2) + Api
Reply With Quote #7

https://forums.alliedmods.net/showthread.php?p=63636
X3. is offline
LtIbrahim
Member
Join Date: Feb 2014
Old 11-07-2018 , 03:11   Re: Advanced Say Commands(v1.2) + Api
Reply With Quote #8

Hey look first my thread creation date and after write it!!!

Last edited by LtIbrahim; 11-07-2018 at 03:11.
LtIbrahim is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode