CreateExplosion-timer help
#1

Hi all,

I'm wondering why this isn't working. I want the people to have 10 seconds to run when they used /bomb. The timer isn't working and there's no explosion coming at all .

Код:
// ----------------------------------------------------------------------------------------------------------------------//

		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(giveplayerid, X, Y, Z);
        GivePlayerMoney(playerid, playercash-50000);
        SendClientMessage(playerid, COLOR_RED, "Bomb planted! 10 seconds till detonation!");
        SetTimerEx("CreateExplosion", 10000, false, "fffif", X, Y, Z, 10, 30.0);
        //CreateExplosion(X, Y, Z, 10, 30.0);
        SendClientMessage(playerid,COLOR_GREEN, "You have planted a bomb!");

        }
    return 1;
    }

// ----------------------------------------------------------------------------------------------------------------------//
Thanks!
Reply


Messages In This Thread
CreateExplosion-timer help - by GTA_Rules - 14.03.2009, 19:36
Re: CreateExplosion-timer help - by Rimeau - 14.03.2009, 19:39
Re: CreateExplosion-timer help - by GTA_Rules - 14.03.2009, 19:52
Re: CreateExplosion-timer help - by GTA_Rules - 15.03.2009, 06:15
Re: CreateExplosion-timer help - by Danut - 15.03.2009, 08:06
Re: CreateExplosion-timer help - by [SFSF]Ali - 15.03.2009, 08:19
Re: CreateExplosion-timer help - by GTA_Rules - 15.03.2009, 08:32
Re: CreateExplosion-timer help - by Think - 15.03.2009, 08:47
Re: CreateExplosion-timer help - by GTA_Rules - 15.03.2009, 09:07
Re: CreateExplosion-timer help - by Think - 15.03.2009, 09:13

Forum Jump:


Users browsing this thread: 1 Guest(s)