23.10.2011, 13:55
You need to create a timer. Something like this for example:
pawn Код:
// in a /bomb command for example:
if(strcmp("/bomb", cmdtext, true, 5) == 0)
{
GameTextForAll("~w~the bomb has been ~r~~n~dropped ~n~~w~exploding in ~p~10 sec",5000,3);
SetTimerEx("Bomb",10000,false,"d",playerid); // bomb timer set for 10sec, will not repeat
return 1;
}
// bottom of script
forward Bomb(playerid);
public Bomb(playerid)
{
GameTextForAll("~w~the ~r~bomb ~w~has ~r~exploded!",5000,3);
CreateExplosion(x,y,z,type,Float:Radius);
return 1;
}