Job cars...
#1

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
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
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:

Код:
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;
}
Please correct my code or write your own, I will be very grateful.
Reply


Messages In This Thread
Job cars... - by Vvolk - 09.05.2011, 13:21
Re: Job cars... - by Seven_of_Nine - 09.05.2011, 13:31
Re: Job cars... - by Vvolk - 09.05.2011, 14:17
Re: Job cars... - by Biesmen - 09.05.2011, 14:22
Re: Job cars... - by Seven_of_Nine - 09.05.2011, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)