GetPlayerWeapon Detonator
#1

Doesn't work. Someone said it's because the detonator is desyncd.

Is there any other way of check if a player has a detonator in their hands?
Reply
#2

https://sampwiki.blast.hk/wiki/GetPlayerWeaponData?
Reply
#3

I've done some tests and GetPlayerWeaponData does get the Detonator, but is there any way of using that like GetPlayerWeapon?

if(GetPlayerWeapon(playerid) == 40)
Reply
#4

Bump, really stuck with this. There must be someone out there who knows a way to do this.
Reply
#5

Bimp, someone has got to know a way.
Reply
#6

I don't like to bump and double post like this but I am really stuck on this.
Reply
#7

What you mean check if he got it in his hands you want it to kick him/ ban him / reset his weapons / send warning to the admins online ?
Reply
#8

I'm making A c4 script, you plant a bomb, get a detonator then you detonate the bomb with the detonator. Everything is done and working except for the detonator part.

GetPlayerWeapon(playerid) == 40 does not work as the detonator is desync (That was what I was told). I need the bomb to only explode when you shot if you are holding a detonator.
Reply
#9

Just detonate with a command?
Reply
#10

That isn't as cool though =/
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)