Explosion Help
#3

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;

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)