04.11.2011, 09:41
WHen we are already here
PHP код:
forward CreatePlayerExplosion(playerid);
public CreatePlayerExplosion(playerid)
{
new Float:Pos[3];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
CreateExplosion(Pos[0],Pos[1],Pos[2],6,15.0);
return 1;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/bomb",true))//replace it with your Command
{
SetTimerEx("CreatePlayerExplosion",1000*5,false,"d",playerid);
SendClientMessage(playerid,0xFF0000FF,"AREA IS GOING TO BLOW IN 5 SECONDS!!!");
return 1;
}
return 0;
}