Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- new string[128];
- new vehicle[24];
- GetVehicleName(vehicleid, vehicle, sizeof(vehicle));
- for(new i=0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(Spectate[i] != 255)
- {
- PlayerSpectateVehicle(i,vehicleid);
- }
- }
- }
- if(IsAnOwnableCar(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: %s",vehicle, vehicleid, CarInfo[vehicleid][cOwner]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsASalesVehicle(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: Dealership",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string,sizeof(string),"Type /v buy to buy this car for $%d",GetVehiclePrice(vehicleid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else
- {
- if(IsAGangCar(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: Los Sureños Gang",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsAGangCar2(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: Le Signatra Mafia",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsAGangCar3(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: Yamaguchi Mafia",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsAGangCar4(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: Chornaya Bratva Mafia",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsAGangCar5(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: La Vice Mafia",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsAGangCar6(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: Sons of Anarchy Gang",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsAGangCar7(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: Hitmen Organization",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsACopCar(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: LSPD",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsAnFbiCar(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: FBI",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsNgCar(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: National Guard",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsASwatCar(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: S.W.A.T",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsATacticalCar(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: Tactical Team",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsASpecialFCar(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: Special Forces",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsAFiremenCar(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: LSFD",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(IsAnAmbulance(vehicleid))
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: LSMD",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else
- {
- format(string,sizeof(string),"Vous êtes entré dans une %s (%d) Propriétaire: The State",vehicle, vehicleid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement