21.01.2014, 15:26
Hi, all. I have a had a long working faction system for a long time and this used to work, but now it doesn't for some reason. Whenver you entered a vehicle, the script would check your faction and if you were not in Faction 1 then it would kick you out of the car. Observe:
(Note: I know it should be under OnPlayerStateChange but I haven't had time so keep in mind it is under OnPlayerUpdate)
But it doesn't kick me out. I am not in Faction 1, so idk.
REPing for the answer.
Код:
new playerState = GetPlayerState(playerid); if(IsPlayerInVehicle(playerid, SFPDC1 && playerState == PLAYER_STATE_DRIVER)) { if(Faction[playerid] != 1) return RemovePlayerFromVehicle(playerid); }
But it doesn't kick me out. I am not in Faction 1, so idk.
REPing for the answer.