GetPlayerWeapon with the detonator
#1

For some reason if(GetPlayerWeapon(playerid) == 40); doesn't want to work. I have the detonator in my hands but it's not pickup up that I have it.
I have debuged in my script to see where my code stops and it is at this part.

Is there a different way to do this?
Reply
#2

That's because the detenator and C4 are desyncronized from SA-MP. I know, I tried making car bombs using detenators too =\.
Reply
#3

I'm actually making plantable C4 bombs lol, pretty much the same thing. Damnit, there must be a way to do this!
Reply
#4

I know bumping is bad and all, but someone must know how to do this.
Reply
#5

Bumping then off to bed, Will check in the morning.
Reply
#6

Search for the Nuclear Bomb script and decrease if(IsPlayerInRangeOfPoint(i,YourRange,x,y,z))
Thats how I done it!
Reply
#7

That isn't really what I want to know.
Reply
#8

D: I need to stop double posting.

I did a test with GetPlayerWeaponData, and that does pick up the detonator, so why doesn't the damn GetPlayerWeapon =/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)