Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(IsAnOwnableCar(newcar))
- {
- if(CarInfo[newcar][cOwned]==0)
- {
- format(string,sizeof(string),"~w~Vehicule: %s~n~Prix: ~g~%d~n~~w~/v acheter Pour acheter ce vehicule~n~~r~",CarInfo[newcar][cDescription],CarInfo[newcar][cValue]);
- GameTextForPlayer(playerid,string,5000,5);
- format(string,sizeof(string),"Ce véhicule : %s est a vendre pour le prix de %d$.",CarInfo[newcar][cDescription],CarInfo[newcar][cValue]);
- SendClientMessage(playerid, COL_YELLOW, string);
- SendClientMessage(playerid, COLOR_YELLOW2, "Si vous désirez acheter ce véhicule, faites /v acheter");
- TogglePlayerControllable(playerid, 0);
- format(string,sizeof(string),"~w~Vehicule: %s~n~Prix: ~g~%d~n~~w~/v acheter Pour acheter ce vehicule~n~~r~",CarInfo[newcar][cDescription],CarInfo[newcar][cValue]);
- GameTextForPlayer(playerid,string,5000,5);
- desactivetext[playerid] = 1;
- SetTimerEx("DesactiverSpeedo", 5000, 0, "i", playerid);
- }
- else if(!engineOn[GetPlayerVehicleID(playerid)])
- {
- // SendClientMessage(playerid, COLOR_GREEN, "Ce véhicule ne t'apartient pas, fais attention a la Police !");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement