Raised This Month: $ Target: $400
 0% 

Change armoury_entity bpammo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-09-2010 , 05:25   Re: Change armoury_entity bpammo
Reply With Quote #1

your offsets are wrong.

armouries offsets are :

34 m_iType
35 m_iCount // that one you need

You have to set them after each new round, you can hook Ham_Respawn post for this.

ResgisterHam(Ham_Respawn, "armoury_entity", "Armoury_Entity_Respawn", 1)

Code:
public Armoury_Entity_Respawn( iEnt ) {   set_pdata_int(iEnt, m_iCount, ANYVALUE, ARMOURY_ENTITY_EXTRAOFFSET) }
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
andregb8
Junior Member
Join Date: Jul 2009
Old 08-09-2010 , 16:10   Re: Change armoury_entity bpammo
Reply With Quote #2

It still didn't work:

PHP Code:
#include < amxmodx >
#include < fakemeta >
#include < hamsandwich >

const m_iCount 35;

public 
plugin_init( )
{
    
register_plugin"armoury_entity max bpammo""1.1""!-Radio-man" );
    
    
RegisterHamHam_Respawn"armoury_entity""FwdRespawn");
}

public 
FwdRespawniEnt )
{
    
set_pdata_intiEntm_iCount90); // 90 bullets only to test

andregb8 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 00:07.


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