dimanche 24 juillet 2016

I need help here

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;
}
Change the variables with yours.

Let's block ads! (Why?)



I need help here

Aucun commentaire:

Enregistrer un commentaire