Advertisement
Guest User

comanda

a guest
Nov 5th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. else if(strcmp(x_job,"vehicle",true) == 0)
  2. {
  3. if(IsPlayerConnected(ofercar[playerid]))
  4. {
  5. if(ofercar[playerid] != id) return SCM(playerid,COLOR_WHITE,"{FFB870}This player has not offered you a car.");
  6. if(GetPlayerCash(playerid) >= carprice[playerid])
  7. {
  8. new vehh = GetPlayerVehicleID(id),tipmasina,myvehh = GetPlayerVehicleID(playerid),vehiculprimit;
  9. if(primesccar[playerid] == 1)
  10. {
  11. if(vehh != personalcar[0][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Vehicle seller needs to be at his selling car.");
  12. if(myvehh != personalcar[0][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be in the offered vehicle.");
  13. tipmasina = 1;
  14. }
  15. if(primesccar[playerid] == 2)
  16. {
  17. if(vehh != personalcar[1][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Vehicle seller needs to be at his selling car.");
  18. if(myvehh != personalcar[1][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be in the offered vehicle.");
  19. tipmasina = 2;
  20. }
  21. if(primesccar[playerid] == 3)
  22. {
  23. if(vehh != personalcar[2][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Vehicle seller needs to be at his selling car.");
  24. if(myvehh != personalcar[2][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be in the offered vehicle.");
  25. tipmasina = 3;
  26. }
  27. if(primesccar[playerid] == 4)
  28. {
  29. if(vehh != personalcar[3][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Vehicle seller needs to be at his selling car.");
  30. if(myvehh != personalcar[3][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be in the offered vehicle.");
  31. tipmasina = 4;
  32. }
  33. if(primesccar[playerid] == 5)
  34. {
  35. if(vehh != personalcar[4][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Vehicle seller needs to be at his selling car.");
  36. if(myvehh != personalcar[4][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be in the offered vehicle.");
  37. tipmasina = 5;
  38. }
  39. if(primesccar[playerid] == 6)
  40. {
  41. if(vehh != personalcar[5][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Vehicle seller needs to be at his selling car.");
  42. if(myvehh != personalcar[5][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be in the offered vehicle.");
  43. tipmasina = 6;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement