Raised This Month: $51 Target: $400
 12% 

ammo start


Post New Thread Reply   
 
Thread Tools Display Modes
BLANCIKJOINT_
Member
Join Date: Oct 2013
Old 10-02-2014 , 10:10   Re: ammo start
Reply With Quote #11

so only for new player
BLANCIKJOINT_ is offline
BLANCIKJOINT_
Member
Join Date: Oct 2013
Old 10-03-2014 , 04:42   Re: ammo start
Reply With Quote #12

yes I tried to give every round of ap amxx


yes
BLANCIKJOINT_ is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 10-03-2014 , 04:54   Re: ammo start
Reply With Quote #13

Quote:
Yes, I tried to give every round of AP
Sorry, what do you mean?
zmd94 is offline
Brian_Chino77
Senior Member
Join Date: Mar 2014
Location: dunno
Old 10-03-2014 , 06:01   Re: ammo start
Reply With Quote #14

He means that he want give starting AP to every player in new round
Brian_Chino77 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 10-03-2014 , 06:33   Re: ammo start
Reply With Quote #15

Then, just use below code. ;)
Quote:
Originally Posted by zmd94 View Post
PHP Code:
#include <amxmodx>
#include <zombieplague> 
#include <hamsandwich>

new cvar_apamount

public plugin_init()
{    
    
register_plugin("[ZP] Addon: Free AP""1.0""zmd94")
    
    
RegisterHam(Ham_Spawn"player""fw_PlayerRespawn"1)
    
    
cvar_apamount register_cvar("zp_ammo_packs_amount""300"// The values of ammo packs reward 
}

public 
fw_PlayerRespawn(id)
{
    if (
is_user_alive(id))
    {
        
zp_set_user_ammo_packs(idzp_get_user_ammo_packs(id) + get_pcvar_num(cvar_apamount))
    }

zmd94 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 03:21.


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