10.07.2013, 11:26
There must be a variable that shows the faction of the player, for example PlayerInfo[playerid][pFaction], and another variable that shows the faction of vehicle, for example VehicleInfo[vID][vFaction]. Then, all you gotta do is;
Just to give the idea.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(VehicleInfo[vehicleid][vFaction] != PlayerInfo[playerid][pFaction])
{
new msg[128];
format(msg, sizeof(msg), "You are not member of faction %d!", VehicleInfo[vehicleid][vFaction]);
SendClientMessage(playerid, -1, msg);
}
}

