15.12.2013, 13:09
I think these will do.
pawn Код:
public CrashListener()
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i)) PlayerUpdateListener(i);
if(IsPlayerConnectedEx(i))
{
if(IsPlayerInAnyVehicle(i) && !crash_detection_disabled[i])
{
new veh = GetPlayerVehicleID(i);
new Float:hp;
GetVehicleHealth(veh,hp);
if(hp < crash_vhp[veh])
{