Explotion help
#16

If you want to learn something, you could try it on your own...
Here is the code:

Quote:

CMD:explode(playerid, params[])
{
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
{
new Float, Float:y, Float:z;
GetPlayerPos( playerid, x, y, z );
SetPlayerArmour(playerid, 1000000000.0);
SetPlayerHealth(playerid, 1000000000.0);
SetTimerEx("Explode", 5000, 0, "d", playerid);
for( new = i; i < 500, i++ )
{
CreateExplosion(x, y, z, 11, 25.0);
}
return 1;
}
return 1;
}

forward Explode (playerid);
public Explode (playerid
{
ClearAnimations(playerid);
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100.0);
return 1;
}

Untested, seen that return 1; is there because of the loop, could do a break...
//edit forgot i++
Reply


Messages In This Thread
Explotion help - by MichaelWharton101 - 23.07.2013, 03:09
AW: Explotion help - by Forbidden - 23.07.2013, 03:14
Re: AW: Explotion help - by MichaelWharton101 - 23.07.2013, 03:17
AW: Re: AW: Explotion help - by Forbidden - 23.07.2013, 03:24
Re: AW: Re: AW: Explotion help - by MichaelWharton101 - 23.07.2013, 03:25
AW: Explotion help - by Forbidden - 23.07.2013, 03:32
Re: AW: Explotion help - by MichaelWharton101 - 23.07.2013, 03:36
AW: Explotion help - by Forbidden - 23.07.2013, 03:39
Re: Explotion help - by MichaelWharton101 - 23.07.2013, 03:41
AW: Explotion help - by Forbidden - 23.07.2013, 03:42
Re: AW: Explotion help - by MichaelWharton101 - 23.07.2013, 03:44
AW: Explotion help - by Forbidden - 23.07.2013, 03:47
Re: AW: Explotion help - by MichaelWharton101 - 23.07.2013, 03:49
AW: Explotion help - by Forbidden - 23.07.2013, 04:00
Re: Explotion help - by MichaelWharton101 - 23.07.2013, 04:01
AW: Explotion help - by Forbidden - 23.07.2013, 04:11
Re: AW: Explotion help - by MichaelWharton101 - 23.07.2013, 04:14
AW: Explotion help - by Forbidden - 23.07.2013, 04:19
Re: Explotion help - by MichaelWharton101 - 23.07.2013, 04:19
AW: Explotion help - by Forbidden - 23.07.2013, 04:23
Re: AW: Explotion help - by MichaelWharton101 - 23.07.2013, 04:25
AW: Explotion help - by Forbidden - 23.07.2013, 04:29
Re: Explotion help - by MichaelWharton101 - 23.07.2013, 04:31
AW: Explotion help - by Forbidden - 23.07.2013, 04:33
Re: AW: Explotion help - by MichaelWharton101 - 23.07.2013, 04:34
AW: Explotion help - by Forbidden - 23.07.2013, 04:38
Re: AW: Explotion help - by MichaelWharton101 - 23.07.2013, 04:41
AW: Explotion help - by Forbidden - 23.07.2013, 04:51
Re: AW: Explotion help - by MichaelWharton101 - 23.07.2013, 04:58
Re: Explotion help - by MichaelWharton101 - 23.07.2013, 15:03

Forum Jump:


Users browsing this thread: 9 Guest(s)