I need help here
#3

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        new seat = GetPlayerVehicleSeat(playerid);
	if(vehicleid == /*id of the vehicle here*/);
	  {
	  if(pInfo[playerid][Job] == "Pizza boy"); //or if you have it with numbers, change it to your variable.
		{
		// your stuff here...
		}
	  else
		{
                if(seat == 0)
                  {
		  SendClientMessage(playerid,/*color*/,/*error text*/);
		  RemovePlayerFromVehicle(playerid);
                  }
		}
	  }
	return 1;
}
Change the variables with yours.
Reply


Messages In This Thread
I need help here - by Micko123 - 24.07.2016, 09:16
Re: I need help here - by Micko123 - 24.07.2016, 09:36
Re: I need help here - by Twistedz - 24.07.2016, 09:52
Re: I need help here - by Mister0 - 24.07.2016, 09:53

Forum Jump:


Users browsing this thread: 1 Guest(s)