Need Small Help
#6

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
	if(issuerid != INVALID_PLAYER_ID && weaponid == 8)
	{
		new Float:HP;
		print("Debug 1");
		GetPlayerHealth(playerid, HP);
		print("Debug 2");
		SetPlayerHealth(playerid,HP-50);
		print("Debug 3");
		PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
		print("Debug 4");
		PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
		print("Debug 5");
	}
	return 1;
}
hit someone with katana and see server.log
Reply


Messages In This Thread
Need Small Help - by MBilal - 27.07.2014, 20:04
Re: Need Small Help - by David (Sabljak) - 27.07.2014, 20:11
Re: Need Small Help - by MBilal - 27.07.2014, 20:11
Re: Need Small Help - by TheKillZone - 27.07.2014, 20:14
Re: Need Small Help - by MBilal - 27.07.2014, 20:21
Re: Need Small Help - by David (Sabljak) - 27.07.2014, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)