08.04.2011, 13:55
How can I make Vehicle, Helicopter Blades, Explosion, Drowned, Splat count as a death count?
public OnPlayerDeath(playerid, killerid, reason)
{
if (killerid == INVALID_PLAYER_ID)
{
// Player died, but there's no killer (explosion, splat, drown, /kill command)...
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if (killerid == INVALID_PLAYER_ID)
{
// Put in -HERE- what will happen when a player dies BUT there is NO KILLER. So he died from
// ¬SPLAT, ¬EXPLOSION, ¬DROWN.
}
return 1;
}
if (killerid == INVALID_PLAYER_ID)
{
PInfo[playerid][Deaths]++;
}
if (killerid == INVALID_PLAYER_ID)
{
PInfo[playerid][Kills]++;
PInfo[playerid][Deaths]++;
}