Zone Help
#4

PHP код:
if(dialogid == 666)
{
    if(
response)
    {
        switch(
listitem)
        {
            case 
0:
            {
                if(
GetPlayerMoney(playerid) >= 400000)
                {
                    if(
GetPlayerScore(playerid) >= 2000)
                    {
                        
GivePlayerMoney(playerid, -400000);
                        
SendClientMessageToAll(red,"Airstrike has been launched in Snake Farm zone.");
                        
anthrax_time 30;
                        new 
ran random(5);
                        if(
ran == 3){CreateExplosion(q,w,e,7,50.0);}
                        if(
ran == 2){CreateExplosion(q,w+10.0,e,7,50.0);}
                        if(
ran == 1){CreateExplosion(q,w+15.0,e,7,50.0);}
                        if(
ran == 4){CreateExplosion(q+20,w+20.0,e,7,50.0);}
                        foreach(
Playeri)
                        {
                            if(
IsPlayerInArea(i,-62.5000000000005,2318.359375,23.4375,2390.625))
                            {
                                if(
gTeam[i]!= gTeam[playerid])
                                {
                                    new 
Float:hp[MAX_PLAYERS];
                                    
GetPlayerHealth(ihp[i]);
                                    
SetPlayerHealth(ihp[i]-75);
                                    
GameTextForPlayer(i"~g~YOU ARE INFECTED DIE IDIOT"40003);
                                    if(
hp[i] <= 0)
                                    {
                                        
SendDeathMessage(playerid,i,51);
                                        
PlayerInfo[i][Deaths] ++;
                                        
PlayerInfo[playerid][Kills] ++;
                                        
GivePlayerMoney(playerid250);
                                        new 
String[100];
                                        
GivePlayerScore(playerid1);
                                        
format(String,sizeof(String),"Airstrike killed %s +1 Score Earned +250$"GetName(i));
                                        
SendClientMessage(playeridgreenString);
                                    }
                                }else return 
false;
                            }
                        }else 
SendClientMessage(playeridRED"ERROR: You need rank 7 to launch Airstrike!");
                    }else 
SendClientMessage(playeridred"ERROR: You Need 400000$ cash to launch Airstrike!");
                }
            }
        }
    }

Is this what you want?
Reply


Messages In This Thread
Zone Help - by Hunud - 18.07.2016, 09:47
Re: Zone Help - by Hunud - 18.07.2016, 10:07
Re: Zone Help - by Hunud - 18.07.2016, 11:59
Re: Zone Help - by GangstaSunny - 18.07.2016, 12:07
Re: Zone Help - by Hunud - 18.07.2016, 12:53
Re: Zone Help - by GangstaSunny - 18.07.2016, 12:58
Re: Zone Help - by Hunud - 18.07.2016, 12:59
Re: Zone Help - by GangstaSunny - 18.07.2016, 13:11
Re: Zone Help - by Hunud - 18.07.2016, 13:24
Re: Zone Help - by GangstaSunny - 18.07.2016, 13:25

Forum Jump:


Users browsing this thread: 2 Guest(s)