GetPlayerWeapon with the 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 with the detonator (
/showthread.php?tid=88383)
GetPlayerWeapon with the detonator -
Gappy - 26.07.2009
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?
Re: GetPlayerWeapon with the detonator -
Joe Staff - 26.07.2009
That's because the detenator and C4 are desyncronized from SA-MP. I know, I tried making car bombs using detenators too =\.
Re: GetPlayerWeapon with the detonator -
Gappy - 26.07.2009
I'm actually making plantable C4 bombs lol, pretty much the same thing. Damnit, there must be a way to do this!
Re: GetPlayerWeapon with the detonator -
Gappy - 26.07.2009
I know bumping is bad and all, but someone must know how to do this.
Re: GetPlayerWeapon with the detonator -
Gappy - 26.07.2009
Bumping then off to bed, Will check in the morning.
Re: GetPlayerWeapon with the detonator -
IVuljak - 26.07.2009
Search for the Nuclear Bomb script and decrease
if(IsPlayerInRangeOfPoint(i,YourRange,x,y,z))
Thats how I done it!
Re: GetPlayerWeapon with the detonator -
Gappy - 27.07.2009
That isn't really what I want to know.
Re: GetPlayerWeapon with the detonator -
Gappy - 27.07.2009
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 =/