OnPlayerEnterVehicle not Recognised
#1

So, I'm trying to make it so that if a players job does not equal to correct job for the vehicle, they are thrown out of the vehicle and given a message. I've done the below, but it's like it isn't even being recognised when testing. Assistance please? Thanks

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
 OnPlayerEnterVehicle(playerid,403||514,0);
 {
  if (job[playerid] != 1)
  RemovePlayerFromVehicle(playerid);
  SendClientMessage(playerid,0xAA3333AA,"You do not have the trucker job");
 }
 OnPlayerEnterVehicle(playerid,448,0);
 {
  if (job[playerid] != 2)
  RemovePlayerFromVehicle(playerid);
  SendClientMessage(playerid,0xAA3333AA,"You do not have the pizza-boy job");
 }
 OnPlayerEnterVehicle(playerid,408,0);
 {
  if (job[playerid] != 3)
  RemovePlayerFromVehicle(playerid);
  SendClientMessage(playerid,0xAA3333AA,"You do not have the trashmaster job");
 }
 return 1;
}
Reply


Messages In This Thread
OnPlayerEnterVehicle not Recognised - by Jonesy96 - 05.02.2013, 23:18
Respuesta: OnPlayerEnterVehicle not Recognised - by ThePhenix - 05.02.2013, 23:30
Re: OnPlayerEnterVehicle not Recognised - by Jonesy96 - 05.02.2013, 23:34
Re: OnPlayerEnterVehicle not Recognised - by Jonesy96 - 06.02.2013, 00:39
Re: OnPlayerEnterVehicle not Recognised - by Infamous - 06.02.2013, 00:55
Re: OnPlayerEnterVehicle not Recognised - by AphexCCFC - 06.02.2013, 01:06
Re: OnPlayerEnterVehicle not Recognised - by Jonesy96 - 06.02.2013, 01:35
Re: OnPlayerEnterVehicle not Recognised - by AphexCCFC - 06.02.2013, 01:41
Re: OnPlayerEnterVehicle not Recognised - by mastermax7777 - 06.02.2013, 03:14
Re: OnPlayerEnterVehicle not Recognised - by Jonesy96 - 06.02.2013, 06:29

Forum Jump:


Users browsing this thread: 1 Guest(s)