15.03.2009, 06:15
Sorry for the double post, but it didn't work. It's probably me doing something wrong, but what
.
Could somebody help me with this please? Would be greatly appreciated.

Код:
// On top forward BlastBomb(Float:X, Float:Y, Float:Z, type, Float:radius); // In OnPlayerCommandText new playercash; playercash = GetPlayerMoney(playerid); if(strcmp(cmd, "/bomb", true) == 0) { if (playercash < 50000) { SendClientMessage(playerid, COLOR_RED, "You need at least 50.000$ to buy a bomb!"); } else { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); GivePlayerMoney(playerid, playercash-50000); SendClientMessage(playerid, COLOR_RED, "Bomb planted! 10 seconds till detonation!"); SetTimer("BlastBomb", 10000, 0); SendClientMessage(playerid,COLOR_GREEN, "You have planted a bomb!"); } return 1; } // Somewhere else (outside other functions) public BlastBomb(Float:X, Float:Y, Float:Z, type, Float:radius) { CreateExplosion(X, Y, Z, type, radius); return 1; }