Raised This Month: $ Target: $400
 0% 

improve this plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kmman
Senior Member
Join Date: Sep 2012
Old 09-10-2013 , 08:10   improve this plugin
Reply With Quote #1

hi all

can you make this plugin to:
show message to both player and Admin
(now it only show's msg to Player )

PHP Code:
public cmdUngag(idlevelcid)
{
    if(!
cmd_access(idlevelcid2))
        return 
1;

    new 
bool:user_gagged[33];
    new 
target[32], admin[32];
    
read_argv(1target31);    
    new 
iTarget cmd_target(idtarget8);
    
    if (!
iTarget)
        return 
PLUGIN_HANDLED;
    
    
get_user_name(id,admin,31)
    
user_gagged[iTarget] = false
    client_print
(iTargetprint_chat"*** [%s] Admin %s Ungaged you"PLUGIN,admin)
    return 
1

Some thing like :
PHP Code:
console_print(adminprint_chat"*** [%s] Player %s Has been Ungaged "PLUGIN,player
ty

Last edited by kmman; 09-10-2013 at 08:14.
kmman is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-10-2013 , 08:17   Re: improve this plugin
Reply With Quote #2

Code:
public cmdUngag(id, level, cid) {     if(!cmd_access(id, level, cid, 2))         return 1;     new bool:user_gagged[33];     new target[32], admin[32];     read_argv(1, target, 31);         new iTarget = cmd_target(id, target, 8);         if (!iTarget)         return PLUGIN_HANDLED;         get_user_name(id,admin,31)     user_gagged[iTarget] = false     client_print(iTarget, print_chat, "*** [%s] Admin %s Ungaged you", PLUGIN,admin)     client_print(id, print_chat, "*** [%s] Admin %s Ungaged you", PLUGIN,admin) //This message  show the admin     return 1 }
__________________

Last edited by kiki33hun; 09-10-2013 at 08:18.
kiki33hun is offline
kmman
Senior Member
Join Date: Sep 2012
Old 09-10-2013 , 09:06   Re: improve this plugin
Reply With Quote #3

Thanks
but Can You please Mention Player's Name too?
and show msg In Console for admin
kmman is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-10-2013 , 09:38   Re: improve this plugin
Reply With Quote #4

PHP Code:
public cmdUngag(idlevelcid)
{
    if(!
cmd_access(idlevelcid2))
        return 
1;

    new 
bool:user_gagged[33];
    new 
target[32], admin[32], player[32];
    
read_argv(1target31);    
    new 
iTarget cmd_target(idtarget8);
    
    if (!
iTarget)
        return 
PLUGIN_HANDLED;
    
    
get_user_name(id,admin,31)
    
get_user_name(iTargetplayer32)
    
user_gagged[iTarget] = false
    client_print
(iTargetprint_chat"*** [%s] Admin %s Ungaged you"PLUGIN,admin)
    
client_print(idprint_chat"*** [%s] You Ungaged %s"PLUGIN,player//This message  show the admin
    
return 1

__________________
kiki33hun 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 18:45.


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