How to remove These errors from my 1 cmd?? (rep+)
#7

=> 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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)