[ASK]Airstrike/nuke system in TDM - 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: [ASK]Airstrike/nuke system in TDM (
/showthread.php?tid=267618)
[ASK]Airstrike/nuke system in TDM -
Deviant96 - 09.07.2011
I'm going to make a TDM server. I want to add nuke and airstrike but, i don't know the pawn code for it.
The team was:
pawn Код:
#define TEAM_MILITARY
#define TEAM_TERORIST
The military has airstrikes and terorist has nukes. The airstrikes and nukes attack the player position who called it. And the delay time for airstrikes and nukes before it activated again are 5 minutes. How? Thanks before
Re: [ASK]Airstrike/nuke system in TDM -
jameskmonger - 09.07.2011
pawn Код:
StartKillstreak(playerid) {
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetTimerEx(FinishKillstreak, 300000, false, "fff", x, y, z);
}
FinishKillstreak(Float:x, Float:y, Float:z) {
CreateExplosion(x+random(5), y+random(5), z+random(5), 6, 25.0);
}
Re: [ASK]Airstrike/nuke system in TDM -
blackwidow18 - 09.07.2011
https://sampforum.blast.hk/showthread.php?tid=260117
an airstrike would be similar. Just create the explosion near the targeted player.