SA-MP Forums Archive
how to detect specified object is destroyed - 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)
+--- Thread: how to detect specified object is destroyed (/showthread.php?tid=347904)



how to detect specified object is destroyed - akhilarora123 - 03.06.2012

hey, i need little help, i m creating a system like when player did 4 killz without dying that player can use /minigun cmd by using that cmd the player will drop 2 objects in his/her location, minigun and explosive and when other team players comes near minigun if explosive is not destroyed then player's health will be decrease by 5%, but the problem is how can i make server detect explosive is destroyed or not?, i already tried if(IsValidObject(objectid)==1), but fail , by destoying explosive with guns this function still take it as valid object, plz help me

awaiting for a quick response ,
thank you