Raised This Month: $ Target: $400
 0% 

Change weapon slot ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-06-2009 , 16:38   Change weapon slot ?
Reply With Quote #1

Has someone found a way yet ?

Seems that ItemSlot is not use for this but only to link weapons to players/weaponbox offsets, or to check if a player can buy a weapon.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 03-06-2009 , 17:54   Re: Change weapon slot ?
Reply With Quote #2

iam not totaly sure what you mean... but this works for dod IF i understood what you are looking:

PHP Code:
public set_slotidwpnslot 
{
 
message_beginMSG_ONEg_msgWeaponList, {0,0,0}, id );
 
write_byte(  ); // Ammo 1 Type
 
write_byte( ); // Ammo 1 Max
 
write_byte( -); // Ammo 2 Type
 
write_byte( -); // Ammo 2 Max
 
write_byteslot ); // Slot (Starts at 0)
 
write_byte); // Bucket (Starts at 0)
 
write_short( ); // Weapon ID
 
write_byte( ); // Flags
 
write_byte( ); // Clip Ammo
 
message_end();

check this plugin by Wilson [29th ID] http://www.dodplugins.net/forums/showthread.php?t=1233
__________________
Dr.G is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-07-2009 , 02:28   Re: Change weapon slot ?
Reply With Quote #3

Could you please attach the .sma here (i don't have account on the website) ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 03-07-2009 , 05:41   Re: Change weapon slot ?
Reply With Quote #4

yea here ya go
__________________

Last edited by Dr.G; 04-21-2009 at 19:47.
Dr.G is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-07-2009 , 05:47   Re: Change weapon slot ?
Reply With Quote #5

This plugin send just a WeaponList message with values from other weapon after a player chooses a class. Nothing more.
Attached Files
File Type: sma Get Plugin or Get Source (dod_rocketclass.sma - 791 views - 5.7 KB)

Last edited by Arkshine; 03-07-2009 at 05:50.
Arkshine is offline
Reply


Thread Tools
Display Modes

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 09:00.


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