Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. CMD:vehicles(playerid, params[])
  2. {
  3. if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu esti logat!");
  4. if(PlayerInfo[playerid][pPcarkey] == 0 && PlayerInfo[playerid][pmotokey] == 0 && PlayerInfo[playerid][phelikey] == 0 && PlayerInfo[playerid][pprcarkey] == 0) return SendClientMessage(playerid,COLOR_WHITE,"{FFB870}You do not have a vehicle.");
  5. new sendername[25],name[100];
  6. GetPlayerName(playerid,sendername,sizeof(sendername));
  7. format(name,sizeof(name),"** %s's vehicles **",sendername);
  8. SCM(playerid,COLOR_TUTORIAL2,name);
  9. if(PlayerInfo[playerid][pPcarkey] != 0)
  10. {
  11. new string[356],carid = PlayerInfo[playerid][pPcarkey],locked[6],neon[10];
  12. if(CarInfo[carid][cLock] == 1)
  13. {
  14. locked = "Yes";
  15. }
  16. else
  17. {
  18. locked = "No";
  19. }
  20. if(CarInfo[carid][cNeon] == 0)
  21. {
  22. neon = "None";
  23. }
  24. else if(CarInfo[carid][cNeon] == 1)
  25. {
  26. neon = "Blue";
  27. }
  28. else if(CarInfo[carid][cNeon] == 2)
  29. {
  30. neon = "Red";
  31. }
  32. else if(CarInfo[carid][cNeon] == 3)
  33. {
  34. neon = "Green";
  35. }
  36. else if(CarInfo[carid][cNeon] == 4)
  37. {
  38. neon = "White";
  39. }
  40. else if(CarInfo[carid][cNeon] == 5)
  41. {
  42. neon = "Pink";
  43. }
  44. else if(CarInfo[carid][cNeon] == 6)
  45. {
  46. neon = "Yellow";
  47. }
  48. format(string,sizeof(string),"Vehicle 1: Model:[%s] Locked:[%s] KM:[%.2f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s] Neon:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]),neon);
  49. SCM(playerid,COLOR_GRAD1,string);
  50. }
  51. if(PlayerInfo[playerid][pmotokey] != 0)
  52. {
  53. new string[256],carid = PlayerInfo[playerid][pmotokey],locked[6];
  54. if(CarInfo[carid][cLock] == 1)
  55. {
  56. locked = "Yes";
  57. }
  58. else
  59. {
  60. locked = "No";
  61. }
  62. format(string,sizeof(string),"Vehicle 2: Model:[%s] Locked:[%s] KM:[%.2f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
  63. SCM(playerid,COLOR_GRAD2,string);
  64. }
  65. if(PlayerInfo[playerid][phelikey] != 0)
  66. {
  67. new string[256],carid = PlayerInfo[playerid][phelikey],locked[6];
  68. if(CarInfo[carid][cLock] == 1)
  69. {
  70. locked = "Yes";
  71. }
  72. else
  73. {
  74. locked = "No";
  75. }
  76. format(string,sizeof(string),"Vehicle 3: Model:[%s] Locked:[%s] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
  77. SCM(playerid,COLOR_GRAD3,string);
  78. }
  79. if(PlayerInfo[playerid][pprcarkey] != 0)
  80. {
  81. new string[356],carid = PlayerInfo[playerid][pprcarkey],locked[6],neon[10];
  82. if(CarInfo[carid][cLock] == 1)
  83. {
  84. locked = "Yes";
  85. }
  86. else
  87. {
  88. locked = "No";
  89. }
  90. if(CarInfo[carid][cNeon] == 0)
  91. {
  92. neon = "None";
  93. }
  94. else if(CarInfo[carid][cNeon] == 1)
  95. {
  96. neon = "Blue";
  97. }
  98. else if(CarInfo[carid][cNeon] == 2)
  99. {
  100. neon = "Red";
  101. }
  102. else if(CarInfo[carid][cNeon] == 3)
  103. {
  104. neon = "Green";
  105. }
  106. else if(CarInfo[carid][cNeon] == 4)
  107. {
  108. neon = "White";
  109. }
  110. else if(CarInfo[carid][cNeon] == 5)
  111. {
  112. neon = "Pink";
  113. }
  114. else if(CarInfo[carid][cNeon] == 6)
  115. {
  116. neon = "Yellow";
  117. }
  118. format(string,sizeof(string),"Vehicle 4: Model:[%s] Locked:[%s] KM:[%.2f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s] Neon:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]),neon);
  119. SCM(playerid,COLOR_GRAD4,string);
  120. }
  121. SCM(playerid,COLOR_TUTORIAL2,"__________________________");
  122. return 1;
  123. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement