20.10.2011, 06:37
I think you shoiuld make your current code like this
pawn Код:
if (strcmp("/cannonfire", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, -1, "You dont have Enough Money For a Cannon Strike");
else
{
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;
}