OnPlayerDeath doesn't recognise if a player was in a vehicle?
#1

I am trying this:
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
	SendClientMessageToAll(-1, "ION just died.");
	if(IsPlayerInAnyVehicle(playerid)) SendClientMessageToAll(-1, "ION was in a vehicle.");
	return 1;
}
The second message doesn't get displayed. And I am in a vehicle.
Is the OnPlayerDeath not recognising whether a player was in a vehicle or not option possible?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)