Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

DestroyFire Object Problem

$
0
0
Hello. I hava a fire system , but when i kill a fire , i got the message instantly!
http://imgur.com/a/A6q94
i got this message every 3 seconds...
http://imgur.com/a/FT8IK
Code:

if(newkeys & KEY_FIRE || newkeys & KEY_AIM)
  {
              if(RespondedToFire[playerid] == 1 && IsAtFire[playerid] == 1)
                {
                        FireTimer[playerid] = SetTimerEx("PuttingOutFire",12000, true, "i",playerid);
                }

Code:

public PuttingOutFire(playerid)
{
        DestroyObject(FireObject[playerid]);
        SendClientMessage(playerid,COLOR_LIGHTRED, "You have Extingushed the Fire.");
          DisablePlayerCheckpoint(playerid);
          RespondedToFire[playerid] = 0;
    SetTimer("RandFireTimer",200000,true);
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles