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;
}