SA-MP Forums Archive
Headshot not working - 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: Headshot not working (/showthread.php?tid=526076)



Headshot not working - MBilal - 15.07.2014

PHP код:
            if(GetPlayerTeam(issuerid) != GetPlayerTeam(playerid)&& GodeMode[playerid]==&& onduty[playerid] == 0// checking if the player is not the same issuerid team
        
{
            if(
bodypart == && GetPlayerWeapon(issuerid)==33  )
            {
             new 
Float:AxFloat:AyFloat:Az;
             
GetPlayerPos(playerid,Ax,Ay,Az);
             
blood[playerid] = CreateDynamicObject(18668AxAyAz-0.5,0.0,0.0,0.0);
                
SetTimerEx("obblood"1000false"fff"AxAyAz);
                
SetPlayerHealth(playerid,0);
            
SetPVarInt(playerid"Headshotted"1);
               
GameTextForPlayer(playerid"~r~Headshotted"30003);
            
Player[playerid][Headshot]++;
      }
  
      return 
1;
        }