24.09.2010, 18:47
My bad...
Try this:
Try this:
pawn Код:
new IsDeadInVehicle[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerInAnyVehicle(playerid) == 1)
{
IsDeadInVehicle[playerid]++;
}
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsDeadInVehicle[playerid] == 1)
{
ResetPlayerWeapons(playerid);
IsDeadInVehicle[playerid] = 0;
}
return 1;
}