AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change weapon slot ? (https://forums.alliedmods.net/showthread.php?t=87097)

ConnorMcLeod 03-06-2009 16:38

Change weapon slot ?
 
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.

Dr.G 03-06-2009 17:54

Re: Change weapon slot ?
 
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

ConnorMcLeod 03-07-2009 02:28

Re: Change weapon slot ?
 
Could you please attach the .sma here (i don't have account on the website) ?

Dr.G 03-07-2009 05:41

Re: Change weapon slot ?
 
yea here ya go

Arkshine 03-07-2009 05:47

Re: Change weapon slot ?
 
1 Attachment(s)
This plugin send just a WeaponList message with values from other weapon after a player chooses a class. Nothing more.


All times are GMT -4. The time now is 09:00.

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