Damage System
#9

Код:
public OnPlayerUpdate(playerid)
{
                new Float:health, Float:x, Float:y, Float:z;
		GetPlayerHealth(playerid, health), GetPlayerPos(playerid, x, y, z);
		if(IsPlayerInAnyVehicle(playerid))
		{
			if(health <= 35 && GetPVarInt(playerid, "Dead") == 0)
			{
				RemovePlayerFromVehicle(playerid);
				SetPlayerPosEx(playerid,x,y,z+2);
				SetPlayerHealth(playerid, 35);
				CallRemoteFunction("Wounded","i", playerid);
			}
		}
		else
		{
			if(health <= 35 && GetPVarInt(playerid, "Dead") == 0)
			{
				SetPlayerHealth(playerid, 35);
				CallRemoteFunction("Wounded","i", playerid);
			}
		}
}
And if i am login on the server this is the problem it's callremotefunction the wounded header

Reply


Messages In This Thread
Damage System - by valelele - 28.06.2017, 14:40
Re: Damage System - by MrCesar - 28.06.2017, 14:48
Re: Damage System - by Abagail - 28.06.2017, 15:01
Re: Damage System - by aoky - 28.06.2017, 15:13
Re: Damage System - by Gammix - 28.06.2017, 16:41
Re: Damage System - by valelele - 28.06.2017, 17:43
Re: Damage System - by valelele - 28.06.2017, 17:56
Re: Damage System - by MrCesar - 28.06.2017, 18:11
Re: Damage System - by valelele - 28.06.2017, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)