07.06.2011, 20:35
PHP код:
forward Explodir(playerid);
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/explodirbomba", cmdtext, true, 10) == 0)
{
if(Bomba[playerid] == 0) return SendClientMessage(playerid, BRANCO,"Vocк nгo comprou nenhuma bomba !");
Bomba[playerid] --;
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetTimerEx("Explodir", 10000, false, "i", playerid);
SendClientMessage(playerid, BRANCO,"Corraa !! A bomba irб explodir em 10 segundos !");
return 1;
}
return 0;
}
public Explodir(playerid)
{
new Float:XYZ[3];
GetPlayerPos(playerid, XYZ[0], XYZ[1], XYZ[2])
CreateExplosion(XYZ[0], XYZ[1], XYZ[2], 11, 10);
return 1;
}