SA-MP Forums Archive
Code working for id 0 only ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Code working for id 0 only ? (/showthread.php?tid=553829)



Code working for id 0 only ? - Gaurav_Rawat - 31.12.2014

pawn Код:
if(Team[playerid] != ASIA)
    {
        if(hittype == BULLET_HIT_TYPE_OBJECT)
        {
        if(IsPlayerInArea(playerid,1278.047851, -939.960571, 1374.047851, -819.960571))
        {
                if(hitid == Mec[playerid])
                {
                SetTimerEx("GettingBase", 12000, false, "i", playerid);
                GangZoneFlashForPlayer(playerid,GZ_ZONE1,COLOR_RED);

                       
                       
                    }
                    }
                }
            }
Callback is OnPlayerWeaponShot
Mec[1] = Is a variable for an object.