Killstreaks: HELP please?
#4

Whoops, I fail...
pawn Код:
new HasCalledAirstrike[MAX_PLAYERS]; //On top of your script

public OnPlayerSpawn(playerid)
{
    HasCalledAirstrike[playerid] = 0;
    return 1;
}

case 6:
{
    if(!response)
    {
        SendClientMessage(playerid, C_RED, "You didn't call a killstreak in");
        return 1;
    }
    if(HasCalledAirstrike[playerid] == 0)
    {
        switch(listitem)
        {
            case 0:
            {
                CreateExplosion(x, y, z+10, 12, 10.0);
                CreateExplosion(x, y+10, z+10, 12, 10.0);
                CreateExplosion(x+10, y+5, z+3, 12, 10.0);
                CreateExplosion(x+5, y+3, z+1, 12, 10.0);
                CreateExplosion(x+3, y+2, z, 12, 10.0);
                CreateExplosion(x+1, y+1, z, 12, 10.0);
                HasCalledAirstrike[playerid]++;
            }
        }
    }
    else SendClientMessage(playerid,0xFF0000FF,"You already called in an Airstrike in this live!");
}
Reply


Messages In This Thread
Killstreaks: HELP please? - by BigAl - 11.09.2011, 11:13
Re: Killstreaks: HELP please? - by AeroBlast - 11.09.2011, 11:24
Re: Killstreaks: HELP please? - by BigAl - 11.09.2011, 11:40
Re: Killstreaks: HELP please? - by AeroBlast - 11.09.2011, 13:01
Re: Killstreaks: HELP please? - by BigAl - 11.09.2011, 22:11

Forum Jump:


Users browsing this thread: 2 Guest(s)