Raised This Month: $ Target: $400
 0% 

[REQ] ammo notifier


Post New Thread Reply   
 
Thread Tools Display Modes
zombiiiizzz
BANNED
Join Date: Apr 2010
Old 04-15-2011 , 11:27   Re: [REQ] ammo notifier
Reply With Quote #11

yes pls
zombiiiizzz is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 04-18-2011 , 05:57   Re: [REQ] ammo notifier
Reply With Quote #12

Here : zombie_plague40.sma
.Dare Devil. is offline
zombiiiizzz
BANNED
Join Date: Apr 2010
Old 04-18-2011 , 08:54   Re: [REQ] ammo notifier
Reply With Quote #13

i don't use 4.3, if u can make it for zpa i'll apreciate much

use one from attachment, thnx !
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague_advance_v1-6-1.sma - 490 views - 418.2 KB)
zombiiiizzz is offline
turri2
Junior Member
Join Date: Nov 2009
Old 04-18-2011 , 13:10   Re: [REQ] ammo notifier
Reply With Quote #14

вот этот плагин)
PHP Code:
/* [ZP] AmmoChange v1.0 */
/* Руссифицировано */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <zombieplague>

new ammo[3][33],string[21],cvarShowType,ammopacks

public plugin_init() {
    
register_plugin("[ZP] AmmoChange""1.0""ZETA [M|E|N]")
    
register_logevent("round_start"2"1=Round_Start")
    
cvarShowType register_cvar("ac_show_type""1")
    
    
register_clcmd("say /change","func_change",ADMIN_ALL,"")
}

public 
round_start() {
    new 
players[32],num,i
    get_players
(players,num)
    
    for(
i=1;i<num;i++) {
        
ammo[0][players[i]] = zp_get_user_ammo_packs(players[i])
    }
}

public 
client_putinserver(id) {
    
set_task(3.0,"func_ammo",id)
}

public 
func_ammo(id) {
    
ammopacks zp_get_user_ammo_packs(id)
    
    
ammo[0][id] = ammopacks
    ammo
[1][id] = ammopacks
    ammo
[2][id] = ammopacks
    
    set_task
(1.0,"change_ammo",id,_,_,"b")
}

public 
change_ammo(id) {
    if(
cs_get_user_team(id) == CS_TEAM_SPECTATOR)
        return 
PLUGIN_HANDLED
        
    ammo
[1][id] = zp_get_user_ammo_packs(id)
        
    if(
ammo[1][id] != ammo[2][id]) {
        if(
ammo[1][id] > ammo[2][id]) {
            
ammopacks ammo[1][id] - ammo[2][id]
            
format(string,charsmax(string),"[ +%d аммо ]"ammopacks)
        }
        else {
            
ammopacks ammo[2][id] - ammo[1][id]
            
format(string,charsmax(string),"[ -%d аммо ]"ammopacks)
        }
        
        
ammo[2][id] = ammo[1][id]
        
        if(
get_pcvar_num(cvarShowType)) {
            
set_hudmessage(1801801800.510.5106.03.0,_,_,3)
            
show_hudmessage(id"%s"string)
        }
        else
            
client_print(idprint_center"%s"string)
    }
    
    return 
PLUGIN_HANDLED
}

public 
client_disconnect(id) {
    
ammo[0][id] = 0
    ammo
[1][id] = 0
    ammo
[2][id] = 0
    
    remove_task
(id)
}

public 
func_change(id) {
    if(
ammo[0][id] != ammo[2][id]) {
        if(
ammo[0][id] > ammo[2][id]) {
            
ammopacks ammo[0][id] - ammo[2][id]
            
client_print(id,print_chat,"[ZP] Ваше аммо уменьшилось на %d."ammopacks)
        }
        else {
            
ammopacks ammo[2][id] - ammo[0][id]
            
client_print(id,print_chat,"[ZP] Ваше аммо увеличилось на %d."ammopacks)
        }
    }
    else 
        
client_print(id,print_chat,"[ZP] Ваше аммо не изменилось.")
    return 
PLUGIN_HANDLED

Attached Files
File Type: sma Get Plugin or Get Source (zp_ammochange.sma - 550 views - 2.2 KB)
turri2 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 21:09.


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