How to make faction cars ?
#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


Messages In This Thread
How to make faction cars ? - by Andron - 22.11.2008, 15:55
Re: How to make faction cars ? - by AiVAMAN - 22.11.2008, 16:14
Re: How to make faction cars ? - by Andron - 22.11.2008, 16:23
Re: How to make faction cars ? - by Dark_Kostas - 22.11.2008, 16:51
Re: How to make faction cars ? - by MenaceX^ - 22.11.2008, 16:52
Re: How to make faction cars ? - by Dark_Kostas - 22.11.2008, 16:57
Re: How to make faction cars ? - by AiVAMAN - 22.11.2008, 16:59
Re: How to make faction cars ? - by Zoopaman - 22.11.2008, 19:18
Re: How to make faction cars ? - by Danut - 22.11.2008, 19:22
Re: How to make faction cars ? - by AiVAMAN - 23.11.2008, 06:12

Forum Jump:


Users browsing this thread: 2 Guest(s)