flamethrower - 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: flamethrower (
/showthread.php?tid=177554)
flamethrower -
Ribber - 18.09.2010
is the flamethrower synced?
So I like to do when a player has 1000 flamethorwer kills he done an achievement.
When this isn't synced, how I can do that this work with explosions?
Re: flamethrower -
Mauzen - 18.09.2010
For the flamethrower kills:
Use GetPlayerWeapon in OnPlayerDeath to detect if the killer used the flamethrower, and if yes, increase a variable for him.
For an example on how to assign explosions to players, check my Bomber FS (The comment on top and the OnBombExplode function. It uses PVars, you would have to create a CreateExplosionEx function, that creates the explosion and calls the OnBombExplode stuff)
Re: flamethrower -
Memoryz - 18.09.2010
The flamethrower is synced.