Code:
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;
}
I need help here
 
Aucun commentaire:
Enregistrer un commentaire