You are not in the LSPD
#4

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;

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);
     }
}
Just to give the idea.
Reply


Messages In This Thread
You are not in the LSPD - by lider1241 - 10.07.2013, 07:08
Re: You are not in the LSPD - by firemanjv - 10.07.2013, 07:09
Re: You are not in the LSPD - by lider1241 - 10.07.2013, 07:37
Re: You are not in the LSPD - by Calabresi - 10.07.2013, 11:26
Re: You are not in the LSPD - by xganyx - 10.07.2013, 11:34
Re: You are not in the LSPD - by lider1241 - 10.07.2013, 18:27
Re: You are not in the LSPD - by lider1241 - 10.07.2013, 18:30
Re: You are not in the LSPD - by Jack.7331 - 10.07.2013, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)