20.10.2011, 14:34
i have made a command which is similar to airstrike command but i want to set a delay timer of 6 seconds before explosion how to do this
?
?Код:
if (strcmp("/cannonfire", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0xFF0000FF, "You dont have Enough Money For a Cannon Strike");
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SendClientMessage(playerid, 0x00FF00FF, "Cannon fire on your position in 6 Seconds and counting!");
GivePlayerMoney(playerid, -10000);//take his money
CreateExplosion(x+random(5), y+random(5), z+random(5), 6, 100.0);
return 1;
}


