Raised This Month: $ Target: $400
 0% 

[EDIT] Scrpit zp_giveap


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 03-30-2015 , 15:05   [EDIT] Scrpit zp_giveap
Reply With Quote #1

hello. i want add message in this scrpit

PHP Code:
#include <amxmodx> 
#include <amxmisc>
#include <zombieplague> 
public plugin_init ()
{
    
register_plugin "ZP: Give Ammo""1.0.0""Arkshine" );
    
register_clcmd "zp_giveap""CmdGiveAP"ADMIN_RCON"- zp_giveap <name> <amount> : Give Ammo Packs" );
    
register_clcmd "amx_giveap""CmdGiveAP"ADMIN_RCON"- amx_giveap <name> <amount> : Give Ammo Packs" );
}

public 
CmdGiveAP idlevelcid )
{
    if ( !
cmd_access idlevelcid) )
    {
        return 
PLUGIN_HANDLED;
    }
    
    new 
s_Name32 ], s_Amount];
    
    
read_argv 1s_Namecharsmax s_Name ) );
    
read_argv 2s_Amountcharsmax s_Amount ) );
    
    new 
i_Target cmd_target ids_Name);
    
    if ( !
i_Target )
    {
        
client_print idprint_console"(!) Player not found" );
        return 
PLUGIN_HANDLED;
    }
    
    if(
is_user_admin(i_Target))
    
zp_set_user_ammo_packs i_Targetmax 1str_to_num s_Amount ) ) );
    return 
PLUGIN_HANDLED;
}  
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1036\\ f0\\ fs16 \n\\ par }
*/ 
when any admin use command zp_giveap NAME AMMO
i want show message in chat

[ADMIN] %s Give %s packs to %s

Ex:
[ADMIN] r0x Give 20 packs to FoxXx

Last edited by arvEL.; 03-30-2015 at 15:06.
arvEL. is offline
Send a message via Skype™ to arvEL.
Old 03-30-2015, 16:41
Keys PK
This message has been deleted by Keys PK.
Obada
Senior Member
Join Date: Dec 2014
Location: Abu Dhabi
Old 03-31-2015 , 09:27   Re: [EDIT] Scrpit zp_giveap
Reply With Quote #2

Wrong Section.
Obada 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 05:07.


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