Posts: 3,304
Threads: 58
Joined: Sep 2008
Reputation:
0
@Carlton: Doesn't this gives the double amount of what he's already holding? (GivePlayerWeapon(playerid, saveweapon[slot], saveammo[slot]) < Supposed to be a positive number?)
Also, I suggest you to break the loop once you find the weapon you need to remove :P
Posts: 320
Threads: 51
Joined: Jul 2010
Reputation:
0
ok.... i think this method might work.. (found it on the wiki) but i still need help on how to use it right:
IsPlayerInRangeOfPoint
and
GetPlayerPos
i'm thinking that somehow i could get the players position.... then if he is in range of the center of the minigun dm then he can keep his minigun.. if he is out of the range (tp's away for instance) then he looses his minigun.
This would enable him to keep his other weapons, but strictly lose his minigun. right? so how do i make this work?