blocking weapon switch reload
#1

when i'm swithcing weapons they are auto reloading... how can i block it?
Reply
#2

I think you can't.
Reply
#3

i'm sure i can. i just don't know how. but i saw servers that did it.
Reply
#4

You would have to rewrite the ammo system. Just give the player one full clip at once, store the real total ammo in a variable. Everytime the player reloads (make a callback with GetPlayerWeaponState) give him a full clip, and decrease the ammo variable. You could use e.g. a TextDraw to show the ammo left.
Cant think of another way to do this atm.
Reply
#5

ok, ill check it out
edit: SetPlayerAmmo doesn't work...
Reply
#6

i don't really remember (i searched in the internet tab)...
are you sure that there is no way to do that?
Reply
#7

Use wacko's callback "OnPlayerWeaponChange(playerid, newweapon, oldweapon)" and save it as Mauzen said...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)