[Help]Bomb
#6

Change this:
PHP Code:
Explode SetTimer("Explosion",300000,0); 
to this:
PHP Code:
Explode SetTimerEx("Explosion",300000,0"i"playerid); 
And

this:
PHP Code:
forward Explosion();
public 
Explosion()
{
    new 
playerid;
    if(
SetpScore[playerid] == 1)
    {
        
SetPlayerScore(playeridGetPlayerScore(playerid) + 5);
        
SetpScore[playerid] = 0;
    }
    for(new 
0MAX_PLAYERSi++)
    {
        
GivePlayerMoney(i10000);
        
SendClientMessage(iCOLOR_RED"Bomb:you got +5 score and 10000$ for planting bomb");
    }
    
GameTextForAll("~r~Bomb exploded",6000,5);
    
CreateExplosion(212.9239,1820.3402,6.4216,12,20.0);
    
PlantedBomb 0;
    return 
1;

to this:
PHP Code:
forward Explosion(playerid);
public 
Explosion(playerid)
{
    
GivePlayerMoney(playerid10000);
    
SetPlayerScore(playeridGetPlayerScore(playerid) + 5);
    
SendClientMessage(playeridCOLOR_RED"Bomb:you got +5 score and 10000$ for planting bomb");
    
GameTextForAll("~r~Bomb exploded",6000,5);
    
CreateExplosion(212.9239,1820.3402,6.4216,12,20.0);
    
PlantedBomb 0;
    return 
1;

Reply


Messages In This Thread
[Help]Bomb - by Mijata - 12.01.2015, 12:15
Re: [Help]Bomb - by Airman123 - 12.01.2015, 12:17
Re: [Help]Bomb - by Mijata - 12.01.2015, 12:21
Re: [Help]Bomb - by Ironboy - 12.01.2015, 12:25
Re: [Help]Bomb - by Airman123 - 12.01.2015, 12:26
Re: [Help]Bomb - by ATGOggy - 12.01.2015, 12:26
Re: [Help]Bomb - by Airman123 - 12.01.2015, 12:28
Re: [Help]Bomb - by ATGOggy - 12.01.2015, 12:29
Re: [Help]Bomb - by Mijata - 12.01.2015, 12:32
Re: [Help]Bomb - by Mijata - 12.01.2015, 12:42

Forum Jump:


Users browsing this thread: 1 Guest(s)