[ASK]Airstrike/nuke system in TDM
#1

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
Reply
#2

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);
}
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=260117

an airstrike would be similar. Just create the explosion near the targeted player.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)