Help with changing players weapon
#1

http://pastebin.com/BLxwH4z5

Every time the player kills somebody it should change there weapon to the next weapon ID stored in ggweaponids
Reply
#2

Reset weapons of killerid, not playerid. Also take care not to go out of bounds. Make sure that WepID is smaller than sizeof GGWeaponIDs before using it as index in the array.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Reset weapons of killerid, not playerid. Also take care not to go out of bounds. Make sure that WepID is smaller than sizeof GGWeaponIDs before using it as index in the array.
Ah yes ive reset it for killerid.

when im testing it PlayerInfo[playerid][pWepID] is 0 so when he kills a player it then sets it too 1.
so it cant be going out of bounds
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)