Help with this CP
#1

Hi guys,i created a checkpoint to blow up area69,all is working but there is a problem.

Here is the code

pawn Код:
if(checkpointid == CPs[0])
    {
      if (GetPlayerMoney(playerid) < 50000)
            {
                 SendClientMessage(playerid, 0xFFFFFF, "You need 50.000$ to bomb the Area69.");
            }
            else if(GetPlayerMoney(playerid) > 50000)
            {
                GivePlayerMoney(playerid,-50000);
                SetTimer("ExplodeArea69",25000,false);
                SendClientMessage(playerid,COLOR_RED,"*Area69 bombed! You have 25 seconds to escape!");
                new str[128];
                new pName[MAX_PLAYER_NAME];
                GetPlayerName(playerid, pName, sizeof(pName));
                format(str,sizeof str,"0,4%s bombed the Area69. ",pName);
                IRC_GroupSay(IRC_Group, EchoChan,str);
            }
    }
The CP is a little bugged,i need to add a limit.

Ex: You are already bombing,please wait.

How?
Reply


Messages In This Thread
Help with this CP - by Face9000 - 11.06.2011, 12:24
Re: Help with this CP - by 0ne - 11.06.2011, 13:54
Re: Help with this CP - by Sascha - 11.06.2011, 13:57

Forum Jump:


Users browsing this thread: 1 Guest(s)