Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.49 KB | None | 0 0
  1. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  2. {
  3.     new string[128];
  4.     new vehicle[24];
  5.     GetVehicleName(vehicleid, vehicle, sizeof(vehicle));
  6.     for(new i=0; i < MAX_PLAYERS; i++)
  7.     {
  8.         if(IsPlayerConnected(i))
  9.         {
  10.             if(Spectate[i] != 255)
  11.             {
  12.                 PlayerSpectateVehicle(i,vehicleid);
  13.             }
  14.         }
  15.     }
  16.     if(IsAnOwnableCar(vehicleid))
  17.     {
  18.         format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: %s",vehicle, vehicleid, CarInfo[vehicleid][cOwner]);
  19.         SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  20.     }
  21.     else if(IsASalesVehicle(vehicleid))
  22.     {
  23.         format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: Dealership",vehicle, vehicleid);
  24.         SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  25.         format(string,sizeof(string),"Type /v buy to buy this car for $%d",GetVehiclePrice(vehicleid));
  26.         SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  27.     }
  28.     else
  29.     {
  30.         if(IsAGangCar(vehicleid))
  31.         {
  32.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: Los Sureños Gang",vehicle, vehicleid);
  33.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  34.         }
  35.         else if(IsAGangCar2(vehicleid))
  36.         {
  37.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)  Propriétaire: Le Signatra Mafia",vehicle, vehicleid);
  38.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  39.         }
  40.         else if(IsAGangCar3(vehicleid))
  41.         {
  42.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: Yamaguchi Mafia",vehicle, vehicleid);
  43.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  44.         }
  45.         else if(IsAGangCar4(vehicleid))
  46.         {
  47.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)  Propriétaire: Chornaya Bratva Mafia",vehicle, vehicleid);
  48.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  49.         }
  50.         else if(IsAGangCar5(vehicleid))
  51.         {
  52.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: La Vice Mafia",vehicle, vehicleid);
  53.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  54.         }
  55.         else if(IsAGangCar6(vehicleid))
  56.         {
  57.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: Sons of Anarchy Gang",vehicle, vehicleid);
  58.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  59.         }
  60.         else if(IsAGangCar7(vehicleid))
  61.         {
  62.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: Hitmen Organization",vehicle, vehicleid);
  63.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  64.         }
  65.         else if(IsACopCar(vehicleid))
  66.         {
  67.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: LSPD",vehicle, vehicleid);
  68.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  69.         }
  70.         else if(IsAnFbiCar(vehicleid))
  71.         {
  72.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: FBI",vehicle, vehicleid);
  73.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  74.         }
  75.         else if(IsNgCar(vehicleid))
  76.         {
  77.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: National Guard",vehicle, vehicleid);
  78.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  79.         }
  80.         else if(IsASwatCar(vehicleid))
  81.         {
  82.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: S.W.A.T",vehicle, vehicleid);
  83.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  84.         }
  85.         else if(IsATacticalCar(vehicleid))
  86.         {
  87.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: Tactical Team",vehicle, vehicleid);
  88.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  89.         }
  90.         else if(IsASpecialFCar(vehicleid))
  91.         {
  92.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: Special Forces",vehicle, vehicleid);
  93.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  94.         }
  95.         else if(IsAFiremenCar(vehicleid))
  96.         {
  97.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: LSFD",vehicle, vehicleid);
  98.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  99.         }
  100.         else if(IsAnAmbulance(vehicleid))
  101.         {
  102.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: LSMD",vehicle, vehicleid);
  103.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  104.         }
  105.         else
  106.         {
  107.             format(string,sizeof(string),"Vous êtes entré dans une %s (%d)   Propriétaire: The State",vehicle, vehicleid);
  108.             SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement