07.08.2012, 08:48
I have one problem with my OnPlayerDeathMessage code.
The problem is that when a player parks over another player and does not get out, the death icon would show as a Helicopter Blades (50) instead of (49) Vehicle .
Here's the code:
Note: When the player is hit by a car and dies, it shows the appropriate message.
The problem is that when a player parks over another player and does not get out, the death icon would show as a Helicopter Blades (50) instead of (49) Vehicle .
Here's the code:
Код:
case 49: { reasonMsg = "Vehicle Collision"; } case 50: { if (GetPlayerState(killerid) == PLAYER_STATE_DRIVER) { switch (GetVehicleModel(GetPlayerVehicleID(killerid))) { case 417, 425, 447, 465, 469, 487, 488, 497, 501, 548, 563: { reasonMsg = "Helicopter Blades"; } default: { reasonMsg = "Vehicle Collision"; } } } else { reasonMsg = "Vehicle Collision"; }