12.01.2015, 12:26
Change this:
to this:
And
this:
to this:
PHP Code:
Explode = SetTimer("Explosion",300000,0);
PHP Code:
Explode = SetTimerEx("Explosion",300000,0, "i", playerid);
this:
PHP Code:
forward Explosion();
public Explosion()
{
new playerid;
if(SetpScore[playerid] == 1)
{
SetPlayerScore(playerid, GetPlayerScore(playerid) + 5);
SetpScore[playerid] = 0;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
GivePlayerMoney(i, 10000);
SendClientMessage(i, COLOR_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;
}
PHP Code:
forward Explosion(playerid);
public Explosion(playerid)
{
GivePlayerMoney(playerid, 10000);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 5);
SendClientMessage(playerid, COLOR_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;
}