17.07.2014, 19:03
I tried it like this
But it now allows passengers and drivers to enter.... Can you help me a bit more?
I tried both states
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
Код:
if(PlayerInfo[playerid][pFaction] != 1 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { ClearAnimations(playerid); SendClientMessage(playerid, COLOR_GREY, "This vehicle is faction restricted."); }
I tried both states
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)