antenna system! - 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: antenna system! (
/showthread.php?tid=614441)
antenna system! -
CTos - 08.08.2016
I can't make a one! I just need someone to help me create a one!
I just need a antenna system and it should be destroyable and it should have a limit health, And when you destroy it, It should say "You destroyed the antenna, 7+ Score" and it should give score too!

Just need something like dis
Re: antenna system! -
Shinja - 08.08.2016
This isn't requesting section but i'll give you some hints
PHP код:
new antenna, antennahp;
OnGameModeInit()
{
antenna=CreateObject(0, 0, 0, 0, 0, 0, 0);
antennahp=100;
}
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(hittype == 3 || hitid == antenna)
{
while(antennahp > 0) antennahp=-5;//example damage 5
}
return 1;
}