/triggerbomb command
#1

Hey guys, I started with new command.. for now I have only start of /bomb command:

pawn Код:
if(strcmp(cmd, "/plantbomb", true) == 0 || strcmp(cmd, "/pb", true) == 0)
    {
        new Float:X, Float:Y, Float:Z, bool: in_range;
        for(new a = 1; a < MAX_VEHICLES - 1; a++)
    {
    if (!GetVehiclePos(a, X, Y, Z)) continue; // vehicle does not exist
    if (IsPlayerInRangeOfPoint(playerid, 4.0, X, Y, Z))
    {
        in_range = true;
        break;
    }
    }
        SendClientMessage(playerid, -1, (in_range) ? ("{FF6A22}INFO:{FFFFFF} Bomb planted!") : ("{FF6A22}INFO:{FFFFFF} No vehicles near you to plant bomb."));
        return 1;
    }
How can I make /triggerbomb command that will make explosion at car coordinates that bomb is planted on?

rep+
Reply


Messages In This Thread
/triggerbomb command - by Lajko1 - 19.07.2014, 08:37
Re: /triggerbomb command - by GeekSiMo - 19.07.2014, 08:43
Re: /triggerbomb command - by Lajko1 - 19.07.2014, 09:00
Re: /triggerbomb command - by GeekSiMo - 19.07.2014, 09:05
Re: /triggerbomb command - by Lajko1 - 19.07.2014, 09:39
Re: /triggerbomb command - by Stinged - 19.07.2014, 09:54
Re: /triggerbomb command - by Lajko1 - 19.07.2014, 11:15
Re: /triggerbomb command - by Lajko1 - 19.07.2014, 13:48
Re: /triggerbomb command - by Stinged - 19.07.2014, 17:40
Re: /triggerbomb command - by Lajko1 - 19.07.2014, 18:43

Forum Jump:


Users browsing this thread: 1 Guest(s)