GetPlayerWeapon Detonator - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GetPlayerWeapon Detonator (
/showthread.php?tid=88684)
GetPlayerWeapon Detonator -
Gappy - 28.07.2009
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?
Re: GetPlayerWeapon Detonator -
Abernethy - 28.07.2009
https://sampwiki.blast.hk/wiki/GetPlayerWeaponData?
Re: GetPlayerWeapon Detonator -
Gappy - 28.07.2009
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)
Re: GetPlayerWeapon Detonator -
Gappy - 28.07.2009
Bump, really stuck with this. There must be someone out there who knows a way to do this.
Re: GetPlayerWeapon Detonator -
Gappy - 29.07.2009
Bimp, someone has got to know a way.
Re: GetPlayerWeapon Detonator -
Gappy - 29.07.2009
I don't like to bump and double post like this but I am really stuck on this.
Re: GetPlayerWeapon Detonator -
[Sk]Noob - 29.07.2009
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 ?
Re: GetPlayerWeapon Detonator -
Gappy - 29.07.2009
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.
Re: GetPlayerWeapon Detonator -
pagie1111 - 29.07.2009
Just detonate with a command?
Re: GetPlayerWeapon Detonator -
Gappy - 29.07.2009
That isn't as cool though =/