weapon problem rep +
#1

pawn Код:
AddPlayerClass(272,1968.1708,1623.3397,12.8613,266.9504,30,200,31,200,8,1);
    AddPlayerClass(46,1968.5464,1620.2056,12.8793,269.1438,30,200,31,200,8,1);
    AddPlayerClass(98,1969.0598,1625.9105,12.8443,269.1438,30,200,31,200,8,1);
He is only spawning with the katana and ak not 3 weapons only 2.
Reply
#2

pawn Код:
AddPlayerClass(272,1968.1708,1623.3397,12.8613,266.9504,2,1,3,1,4,1);
Only spawning with the 1st one.
Reply
#3

Quote:
Originally Posted by oscar7610
Посмотреть сообщение
pawn Код:
AddPlayerClass(272,1968.1708,1623.3397,12.8613,266.9504,2,1,3,1,4,1);
Only spawning with the 1st one.
Weapon ID 2 , 3 and 4 lies in Slot 1. This means that you can only have one weapon from each slot.
Also refer here: https://sampwiki.blast.hk/wiki/Weapons
Reply
#4

Quote:
Originally Posted by oscar7610
Посмотреть сообщение
pawn Код:
AddPlayerClass(272,1968.1708,1623.3397,12.8613,266.9504,30,200,31,200,8,1);
    AddPlayerClass(46,1968.5464,1620.2056,12.8793,269.1438,30,200,31,200,8,1);
    AddPlayerClass(98,1969.0598,1625.9105,12.8443,269.1438,30,200,31,200,8,1);
He is only spawning with the katana and ak not 3 weapons only 2.
Weapon ID 31 and Weapon ID 30 lies in the same slot which is Slot number 5.
You can have only one weapon ID from each slot
Reply
#5

Quote:
Originally Posted by jikesh_jus
Посмотреть сообщение
Weapon ID 31 and Weapon ID 30 lies in the same slot which is Slot number 5.
You can have only one weapon ID from each slot
so how Can i correct it? rep +
Reply
#6

you can use SetSpawnInfo
try
https://sampwiki.blast.hk/wiki/SetSpawnInfo
Reply
#7

you must change the weapon type.

refer to https://sampwiki.blast.hk/wiki/Weapons to see weapons list

in simple words, you can't use 2 weapons from the same slot. (like weaponid 30 and weaponid 31)
Reply
#8

You can't use Weapon ID 30 and 31 at same time. Because both need the same slot. Take a look here: https://sampwiki.blast.hk/wiki/Weapons

Mmm, you can change them with other weapon, Weapon IDs 2, 3, 4 need the slot 1. So each slot support one weapon. You have to choose what weapon do you want.

For example this will give you:
-One knife (Knife ID = 4 | Uses slot 1)
-A MP5 with 100 bullets. (MP5 ID = 29 | Uses slot 4)
-A AK-47 with 200 bullets. (AK-47 ID = 30 | Uses slot 5)
pawn Код:
AddPlayerClass(272,1968.1708,1623.3397,12.8613,266.9504,4,1,29,100,4,1);
Finally, for example you can't get the AK-47 and the M4 at same time because they're of the same class and each one needs the same slot, so each slot, support just one weapon.

Best regards, I hope you understand.
Reply
#9

Thanks all rep + thanks.

Im having a problem when spawning sometimes I get different weapons.

Il try use setspawninfo
Reply
#10

all rep + thx guys
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)