Tб aн.
pawn Код:
// Topo do GameMode
new
Float: P[3],
bool: ColocouBomba[MAX_PLAYERS char]
;
// OnPlayerCommandText
if(strcmp(cmdtext, "/explodir", true) == 0)
{
if(ColocouBomba[playerid] == false)
{
GetPlayerPos(playerid, P[0], P[1], P[2]);
SendClientMessage(playerid, -1, "O local onde vocк estб ira explodir em 10 segundos!");
SetTimer("Explodir", 10000, false);
return ColocouBomba[playerid] = true;
}
else { SendClientMessage(playerid, -1, "Vocк jб plantou uma bomba!"); }
return 1;
}
// Final do GameMode
forward Explodir();
public Explodir()
{
CreateExplosion(P[0], P[1], P[2], 4, 5.0);
return ColocouBomba[playerid] = false;
}
Use e abuse, rep+ please.