Sniper hart choose
#4

Sir , Doesnt work
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
	if(issuerid != INVALID_PLAYER_ID)
	{
	    ShotPlayer[issuerid][playerid] = gettime();
	    LastShot[playerid] = gettime();
	}
     else if(issuerid != INVALID_PLAYER_ID && weaponid == 34)
    {
        // One shot to kill with sniper rifle
        SetPlayerHealth(playerid, 0.0);
    }
    else if(issuerid != INVALID_PLAYER_ID && weaponid == 38)
    {
        // One shot to kill with Minigun
        SetPlayerHealth(playerid, 0.0);
    }
	return 1;
}
Would you can fix it sir please ?
Reply


Messages In This Thread
Sniper hart choose - by ProjectFutureRolePlay - 22.06.2013, 22:56
Re: Sniper hart choose - by s0nic - 23.06.2013, 05:03
Re: Sniper hart choose - by ProjectFutureRolePlay - 23.06.2013, 06:52
Re: Sniper hart choose - by ProjectFutureRolePlay - 23.06.2013, 21:46

Forum Jump:


Users browsing this thread: 3 Guest(s)