05.02.2013, 23:18
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;
}

