Explosion Help
#10

Try this:

pawn Код:
// top of script

new Float: BombX;
new Float: BombY;
new Float: BombZ;

// onplayercommandtext

if(!strcmp (cmdtext, "/bomb", true, 5))
{
    GetPlayerPos(playerid,BombX,BombY,BombZ);
   
    SetTimerEx("CreatePlayerExplosion",5000,false,"dfff",playerid,BombX,BombY,BombZ);
   
    SendClientMessage(playerid, -1,"Bomb Planted ... The Area Will Explode In 5 Seconds!");
   
    return 1;
}

// bottom of script

forward CreatePlayerExplosion(playerid, &Float:x, &Float:y, &Float:z);
public CreatePlayerExplosion(playerid, &Float:x, &Float:y, &Float:z)
{
    CreateExplosion(Float:x, Float:y, Float:z, 6, 15.0);
    return 1;
}
If that fails to work, try this:

pawn Код:
// top of script

new Float: BombX;
new Float: BombY;
new Float: BombZ;

// onplayercommandtext

if(!strcmp (cmdtext, "/bomb", true, 5))
{
    GetPlayerPos(playerid,BombX,BombY,BombZ);

    SetTimerEx("CreatePlayerExplosion",5000,false,"dfff",playerid,BombX,BombY,BombZ);

    SendClientMessage(playerid, -1,"Bomb Planted ... The Area Will Explode In 5 Seconds!");

    return 1;
}

// bottom of script

forward CreatePlayerExplosion(playerid);
public CreatePlayerExplosion(playerid)
{
    CreateExplosion(BombX,BombY,BombZ,6,15);
    return 1;
}
Reply


Messages In This Thread
Explosion Help - by jiwan - 04.11.2011, 07:29
Re: Explosion Help - by [GOD]Dragonster82 - 04.11.2011, 07:35
Re: Explosion Help - by [MG]Dimi - 04.11.2011, 09:41
Re: Explosion Help - by jiwan - 04.11.2011, 14:23
Re: Explosion Help - by SmiT - 04.11.2011, 14:38
Re: Explosion Help - by jiwan - 04.11.2011, 14:46
Re: Explosion Help - by SmiT - 04.11.2011, 14:55
Re: Explosion Help - by jiwan - 05.11.2011, 05:24
Re: Explosion Help - by jiwan - 05.11.2011, 15:16
Re: Explosion Help - by grand.Theft.Otto - 06.11.2011, 00:43

Forum Jump:


Users browsing this thread: 1 Guest(s)