Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. if(IsAnOwnableCar(newcar))
  2. {
  3. if(CarInfo[newcar][cOwned]==0)
  4. {
  5. 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]);
  6. GameTextForPlayer(playerid,string,5000,5);
  7. format(string,sizeof(string),"Ce véhicule : %s est a vendre pour le prix de %d$.",CarInfo[newcar][cDescription],CarInfo[newcar][cValue]);
  8. SendClientMessage(playerid, COL_YELLOW, string);
  9. SendClientMessage(playerid, COLOR_YELLOW2, "Si vous désirez acheter ce véhicule, faites /v acheter");
  10. TogglePlayerControllable(playerid, 0);
  11. 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]);
  12. GameTextForPlayer(playerid,string,5000,5);
  13. desactivetext[playerid] = 1;
  14. SetTimerEx("DesactiverSpeedo", 5000, 0, "i", playerid);
  15. }
  16. else if(!engineOn[GetPlayerVehicleID(playerid)])
  17. {
  18. // SendClientMessage(playerid, COLOR_GREEN, "Ce véhicule ne t'apartient pas, fais attention a la Police !");
  19. RemovePlayerFromVehicle(playerid);
  20. return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement