15.04.2012, 14:10
=> I did this but even i have 0 score it drop bomb. And there is not timer. As Soon as i type /airstrike it blast. And I also want like if player has cash less then 10000 then he can't do airstike... Please i beg u help me!!!!
pawn Код:
COMMAND:airstrike(playerid, params[])
{
if(GetPlayerScore(playerid) >= 2000)
{
return SendClientMessage(playerid, 0xFF0000FF, "You dont have enough score, you need 2000 score");
}
else
{
new Float:tX, Float:tY, Float:tZ;
GetPlayerPos(playerid, tX, tY, tZ);
GivePlayerMoney(playerid,-10000);
SetTimer("5 Seconds To Drop", 5000, false);
CreateExplosion(tX, tY, tZ, 7, 20.0);
SendClientMessage(playerid, 0xFF0000FF, "Air Strike Successfully Done!");
}
return 1;
}