Sniper/Rifle Head Shot Problem
#3

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
    if(issuerid == INVALID_PLAYER_ID || gTeam[playerid] == gTeam[issuerid])return 1;
    if(weaponid != 34 && weaponid != 33)return 1;
    if(bodypart != 9)return 1;
    new stringa[MAX_PLAYER_NAME+40];
    format(stringa, sizeof(stringa), "{00FFFF}[HEADSHOT]:{FFFFFF}%s{FFFF00}by{FFFFFF} %s", GetName(playerid), GetName(issuerid));
    SendClientMessageToAll(0xFFFF00FF,stringa), stringa = ""; GivePlayerScore(playerid,1);
    SetTimerEx("@HeadshotKill", 500, false, "i", playerid);
    return 1;
}
@HeadshotKill(id); @HeadshotKill(id){
  SetPlayerHealth(id, 0.0);
}
Try this source code a try!
Reply


Messages In This Thread
Sniper/Rifle Head Shot Problem - by Meow22 - 21.08.2014, 17:24
Re : Sniper/Rifle Head Shot Problem - by S4t3K - 21.08.2014, 17:30
AW: Sniper/Rifle Head Shot Problem - by CIBERKILLER - 21.08.2014, 17:42

Forum Jump:


Users browsing this thread: 1 Guest(s)