17.07.2014, 18:47
I'm trying to make the vehicle only restrict users from entering if they're attempting to get in the driver seat BUT the script is stopping both driver and passenger...How can i make it only driver and allow passenger??
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { for(new i = 0; i < 12; i++) { if(vehicleid == LSPDVehicles[i]) //If the vehicleid is an LSPD vehicle { if(PlayerInfo[playerid][pFaction] != 1) { ClearAnimations(playerid); SendClientMessage(playerid, -1, "This vehicle is faction restricted."); } } } return 1; }