Advertisement
Guest User

Untitled

a guest
Dec 17th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. if(playertextid == DSCUMPARA[playerid]) {
  2. // Cumpara
  3. new idstock = BuyCar[playerid];
  4. if(Stock[idstock][vPremium] == 0)
  5. {
  6. if(Stock[idstock][vPrice] > GetPlayerCash(playerid))
  7. {
  8. SendClientMessage(playerid, -1, "Nu ai suficienti bani pentru a cumpara aceasta masina.");
  9. return 1;
  10. }
  11. else
  12. {
  13. if(idstock >= 1 && idstock < 101) return InsertCar(playerid,idstock,0),DealerShipTextDrawHide(playerid),CancelSelectTextDraw(playerid);
  14. }
  15. }
  16. else
  17. {
  18. if(Stock[idstock][vGold] > PlayerInfo[playerid][pPremiumPoints])
  19. {
  20. SendClientMessage(playerid, -1, "Nu ai suficiente puncte premium pentru a cumpara aceasta masina.");
  21. return 1;
  22. }
  23. else
  24. {
  25. if(idstock >= 1 && idstock < 101) return InsertCar(playerid,idstock,1),DealerShipTextDrawHide(playerid),CancelSelectTextDraw(playerid);
  26. }
  27. }
  28. }
  29. if(playertextid == DSANULEAZA[playerid]) {
  30. // Anuleaza
  31. DealerShipTextDrawHide(playerid);
  32. CancelSelectTextDraw(playerid);
  33. DestroyVehicle(DSCAR[playerid]);
  34. SCM(playerid, COLOR_ERROR, "Ai anulat");
  35. SetPlayerPosEx(playerid, -1664.1561,1207.6320,7.2546);
  36. SetPlayerVirtualWorld(playerid, 0);
  37. SetPlayerInterior(playerid, 0);
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement