09.05.2011, 13:21 
	
	
	
		I have a problem: I want to do job cars whose id id: GD1,GD2,GD3,GD4,GD5,GD6,GD7. But i make the code under 
 But if player who not in this work enter this car, sendmessage for him:"You don't work this job",if player in this job, but he doesn't wear an uniform, send message for him:"You should work in this work to drive this car". But i maked this code and then player enter any car to them send message:"You don't wowk this job" and he can drive this car and him don' t remove form this car. There is my code:
Please correct my code or write your own, I will be very grateful. 
	
	
	
	
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
   if(vehicleid == GD1,GD2,GD3,GD4,GD5,GD6,GD7){
   if(isPlayerInJob(playerid,1)){
   SetPlayerScore(playerid,200);
   }
   else
   {
        SendClientMessage(playerid,0x999900AA,"You don't work this job!");
        RemovePlayerFromVehicle(playerid);
   }
   }
   if(vehicleid == GD1,GD2,GD3,GD4,GD5,GD6,GD7){
   if(GetPlayerSkin(playerid)!=28){
   SetPlayerScore(playerid,200);
   }
   else
   {
        SendClientMessage(playerid,0x999900AA,"You should wear an uniform!");
        RemovePlayerFromVehicle(playerid);
   }
   }
   return 1;
}
	
