How to make faction cars ?
#1

Can somone explain how make faction cars ? Like PD,DMV,Ambulance etc ..
Reply
#2

sorry, but i don't understood you... more detailed please?
Reply
#3

Like example ..

If I want make new taxi cab you know.. So , with that new taxi cab driver can be only Taxi driver , and another players who try to drive with it get eject from car with message "You are not taxi driver" .. or like this .
Reply
#4

First add this command

pawn Код:
if(strcmp(cmd, "/carid", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
     if(IsPlayerInAnyVehicle(playerid))
     {
      new car = GetPlayerVehicleID(playerid);
          format(string, sizeof(string), "Your car id is: %d",car);
          SendClientMessage(playerid, COLOR_GREY, string);
         }
         else
         {
         SendClientMessage(playerid, COLOR_GREY, "You must be in a vehicle");
         }
      }
      return 1;
    }
And when you are in game,in the car that you added type /carid.You will see a number.

Then search for

pawn Код:
if(newcar == 82 || newcar == 84 || newcar == 85 || newcar == 94)
        {
          if(PlayerInfo[playerid][pMember] == 10||PlayerInfo[playerid][pLeader] == 10) { }
          else
            {
            SendClientMessage(playerid,COLOR_GREY,"  You are not a Taxi Driver !");
            RemovePlayerFromVehicle(playerid);
          }
        }
And add the number next to "newcar == 94"

Ex when you type /carid.If you see "Your car id is: 123456"
Add this
if(newcar == 82 || newcar == 84 || newcar == 85 || newcar == 94 || newcar == 123456)

AND ASK THE GODFATHER QUESTIONS TO THE GODFATHER THREAD
Reply
#5

Is it for GF?
Reply
#6

Quote:
Originally Posted by MenaceX
Is it for GF?
Faction cars,DMV,taxi,PD and exactly THAT message is from GF
Reply
#7

who cares?? GF, not GF...
Reply
#8

btw, wouldn't it be better to add the car's modelid (400-611) and just set a couple of exceptions when/if needed? IMO makes the code lighter and allows to swap cars w/o worrying about remembering to change the IDs...
Reply
#9

Quote:
Originally Posted by Lt_Aivariux
who cares?? GF, not GF...
not who cares X( you have a GodFather Topic
Reply
#10

lol GodFather sucks... xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)