Player gets frozen when ejected out of a vehicle
#1

Hi I am creating faction only vehicles and it works completely how it is supposed to however once the player is ejected he gets frozen and the only way to get unfrozen is by relogging.

Code:
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
    {
        new car = GetPlayerVehicleID(playerid);
        for(new i = 0; i < sizeof(LSPDVehicles); i++)
        {
            if(car == LSPDVehicles[i])
            {
                if(PlayerInfo[playerid][Faction] != 1)
                {
                    ClearAnimations(playerid);
                    RemovePlayerFromVehicle(playerid);
                    SendClientMessage(playerid, -1, "You don`t have the keys for this car.");
                }
            }
        }
    return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)