When I die, I get moved away like 20-30 meters away.
#3

OnPlayerDeath

Код:
 public OnPlayerDeath(playerid, killerid, reason)
{
	if (killerid != INVALID_PLAYER_ID)
	{
	    if (1 <= reason <= 46)
			Log_Write("logs/kill_log.txt", "[%s] %s has killed %s (%s).", ReturnDate(), ReturnName(killerid), ReturnName(playerid), ReturnWeaponName(reason));

		else
			Log_Write("logs/kill_log.txt", "[%s] %s has killed %s (reason %d).", ReturnDate(), ReturnName(killerid), ReturnName(playerid), reason);

		if (reason == 50 && killerid != INVALID_PLAYER_ID)
		    SendAdminAlert(COLOR_LIGHTRED, "[ADMIN]: %s has killed %s by heli-blading.", ReturnName(killerid, 0), ReturnName(playerid, 0));

        if (reason == 29 && killerid != INVALID_PLAYER_ID && GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
		    SendAdminAlert(COLOR_LIGHTRED, "[ADMIN]: %s has killed %s by driver shooting.", ReturnName(killerid, 0), ReturnName(playerid, 0));
	}
	if(IsInBus[playerid] == 1)
	{
		IsInBus[playerid] = 0;
  		KillTimer(Timer1[playerid]);
		KillTimer(Timer2[playerid]);
	}
	if(IsInShml[playerid] == 1)
	{
	    IsInShml[playerid] = 0;
	}
	if(Intropic[playerid] == 1)
	{
	    Intropic[playerid] = 0;
	}
	if(InAmbulance[playerid] == 1)
	{
	    InAmbulance[playerid] = 0;
	}
	if(InEnforcer[playerid] == 1)
	{
	    InEnforcer[playerid] = 0;
	}
	if(InJourney[playerid] == 1)
	{
	    InJourney[playerid] = 0;
	}
	if(InRaindance[playerid] == 1)
	{
	    InRaindance[playerid] = 0;
	}
	waittimer();
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)