20.10.2011, 05:58
thx nilanjay but i want to add that in this code how to do this
i also want to add timer of 6 seconds !
Код:
if (strcmp("/cannonfire", cmdtext, true, 10) == 0) { if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, -1, "You dont have Enough Money For a Cannon Strike"); CreateExplosion(, , , 6, 15);//cordinates to be written yet :D SendClientMessage(playerid, 0xFF0000FF, "Cannon fire on your position in 6 Seconds and counting!"); GivePlayerMoney(playerid, -10000);//take his money return 1; }