SA-MP Forums Archive
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 antennaantennahp;
OnGameModeInit()
{
    
antenna=CreateObject(0000000);
    
antennahp=100;
}
public 
OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ)
{
    if(
hittype == || hitid == antenna)
    {
        while(
antennahp 0antennahp=-5;//example damage 5
    
}
    return 
1;