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

Requst Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
QuickDroLLL
Senior Member
Join Date: Dec 2021
Location: AMX Mod X Land
Old 05-02-2022 , 13:23   Requst Plugin
Reply With Quote #1

iam loking for plugin that allows these commonds in chat
first commond : !ban (name) (time) (reason) / ban accses
second commond : !kick (name) (time) (reason) / kick accses
therd commond : !gag (name) (time) / gag accses
fourd commond : !slay (name) / slay acses
and last commond : !vote (qustion) (repons1) (repons2)

sorry for my bad english
QuickDroLLL is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 05-02-2022 , 19:59   Re: Requst Plugin
Reply With Quote #2

Code:
#include <amxmodx> new const g_szCommands[ ][ ] = {     "!ban",     "!kick",     "!gag",     "!slay",     "!vote" } public plugin_init( ) {     register_plugin( "Console command to Chat command", "1.0", "Supremache" )     register_clcmd( "say", "OnSay" )     register_clcmd( "say_team", "OnSay" ) } public OnSay( id ) {     if( ! is_user_connected( id ) )     {         return;     }     static szArgs[ 192 ]     read_args(szArgs, charsmax(szArgs)); remove_quotes(szArgs)     for( new i; i < sizeof( g_szCommands ); i++ )     {         if( containi( g_szCommands[ i ], szArgs ) != 0 )         {             client_cmd( id, "amx_%s", szArgs[ 1 ] )             break;         }     } }
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
QuickDroLLL
Senior Member
Join Date: Dec 2021
Location: AMX Mod X Land
Old 05-03-2022 , 10:07   Re: Requst Plugin
Reply With Quote #3

Quote:
Originally Posted by Supremache View Post
Code:
#include <amxmodx> new const g_szCommands[ ][ ] = {     "!ban",     "!kick",     "!gag",     "!slay",     "!vote" } public plugin_init( ) {     register_plugin( "Console command to Chat command", "1.0", "Supremache" )     register_clcmd( "say", "OnSay" )     register_clcmd( "say_team", "OnSay" ) } public OnSay( id ) {     if( ! is_user_connected( id ) )     {         return;     }     static szArgs[ 192 ]     read_args(szArgs, charsmax(szArgs)); remove_quotes(szArgs)     for( new i; i < sizeof( g_szCommands ); i++ )     {         if( containi( g_szCommands[ i ], szArgs ) != 0 )         {             client_cmd( id, "amx_%s", szArgs[ 1 ] )             break;         }     } }
work perfectly thx!!!
QuickDroLLL 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 06:32.


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