View Single Post
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-21-2022 , 18:29   Re: ZP plugin - stop buy
Reply With Quote #2

PHP Code:
        if(g_ItemCount[player] >= 2)
        {
            
zp_colored_print(0"You are allowed to buy armor only^4 2 times^1 per round! Max.^3 200ap^1.")
            
ZP_PLUGIN_HANDLED
        
}
        else
        
zp_colored_print(0"You successfully bought^4 100ap^1.")
        {
            
set_pev(playerpev_armorvaluefloat(min(pev(playerpev_armorvalue)+g_armor_amountg_armor_limit))) 
            
engfunc(EngFunc_EmitSoundplayerCHAN_BODYg_sound_buyarmor1.0ATTN_NORM0PITCH_NORM
            
            
g_ItemCount[player] ++
        } 

PHP Code:
        if(g_ItemCount[player] >= 2)
        {
            
zp_colored_print(0"You are allowed to buy armor only^4 2 times^1 per round! Max.^3 200ap^1.")
            return 
ZP_PLUGIN_HANDLED
        
}
        else
        {
            
zp_colored_print(0"You successfully bought^4 100ap^1.")
            
set_pev(playerpev_armorvaluefloat(min(pev(playerpev_armorvalue)+g_armor_amountg_armor_limit))) 
            
engfunc(EngFunc_EmitSoundplayerCHAN_BODYg_sound_buyarmor1.0ATTN_NORM0PITCH_NORM
            
            
g_ItemCount[player] ++
        } 
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 09-21-2022 at 18:30.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh