Raised This Month: $ Target: $400
 0% 

WeaponList message and ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wiwi249
Member
Join Date: Oct 2013
Old 12-24-2014 , 21:00   Re: WeaponList message and ammo
Reply With Quote #1

Acctually I tried, but:
p->pszAmmo1 = "556Nato";
it's a string, and all I can send here are the int values.
Anyway, the 556Nato ammo ID is 2 i think, but not really sure.

Now the code looks like:
PHP Code:
message_beginMSG_ONEMsgIndexWeaponList, .player player ); 
        { 
            
write_string"weapon_sr25" );  // WeaponName 
            
write_byte);                   // PrimaryAmmoID 
            
write_byte90 );                   // PrimaryAmmoMaxAmount 
            
write_byte);                   // SecondaryAmmoID 
            
write_byte( -);                   // SecondaryAmmoMaxAmount 
            
write_byte);                    // SlotID (0...N) 
            
write_byte16 );                    // NumberInSlot (1...N) 
            
write_byteCSW_SG550 );            // WeaponID 
            
write_byte);                    // Flags 
        

        
message_end(); 
Still not working properly...

Last edited by wiwi249; 12-24-2014 at 21:00.
wiwi249 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 15:20.


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