24.12.2011, 05:03
pawn Код:
if(!strcmp(cmdtext, "/detonar", true))
{
//SetTimerEx("Detonar", 6000, false, "ffbbb", playerid, bomba[playerid], bx[playerid], by[playerid], bz[playerid]);
Bomba[playerid] = false;
GameTextForPlayer(playerid, "5", 1000, 6);
GameTextForPlayer(playerid, "4", 1000, 6);
GameTextForPlayer(playerid, "3", 1000, 6);
GameTextForPlayer(playerid, "2", 1000, 6);
GameTextForPlayer(playerid, "1", 1000, 6);
DestroyObject( bomba[playerid]);
CreateExplosion(bx[playerid], by[playerid], bz[playerid], 10, 2000);
CreateExplosion(bx[playerid]+2, by[playerid]+2, bz[playerid]+2, 10, 2000);
CreateExplosion(bx[playerid]+3, by[playerid]+3, bz[playerid]+3, 10, 2000);
GameTextForPlayer(pID,"~r~Bomba~w~ detonada com sucesso.", 3000, 5);
return 1;
}