Hi guys i havnt scripted in a while so i decided to get back into ive been using VB so my knowledge is a bit rusty can someone help me clean up this bit of code
Код:
new keys, updown, leftright;
GetPlayerKeys(playerid, keys, updown, leftright);
if (keys & KEY_FIRE)
{
for(new i, m = GetMaxPlayers(); i < m; i++)
{
if (!IsPlayerConnected(i)) continue;
if (i == playerid) continue;
if (IsPlayerAimingTargetBodyPart(playerid, i, BODY_PART_HEAD)) SetPlayerHealth(i, 0.0);
else if
( IsPlayerAimingTargetBodyPart(playerid, i, BODY_PART_LEGS)) SetPlayerHealth(i , 70.0);
ApplyAnimation(playerid,"PED","Lay_Bac_Loop",4.1,0,1,1,1,1);
else
( IsPlayerAimingTargetBodyPart(playerid, i, BODY_PART_LEGS)); SetPlayerHealth(i , 75.0);
SetPlayerArmedWeapon(i, 0);
}
}