15.12.2013, 14:33
well, I can't really find a problem, but, lets NOT use the IsPlayerConnectedEx function, instead simply copy paste it.
not sure if it will work, but its worth a try.
pawn Код:
public CrashListener()
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i)) PlayerUpdateListener(i);
if(IsPlayerConnected(i) && character_chosen[i])
{
if(IsPlayerInAnyVehicle(i) && !crash_detection_disabled[i])
{
new veh = GetPlayerVehicleID(i);
new Float:hp;
GetVehicleHealth(veh,hp);
if(hp < crash_vhp[veh])
{