Guest User

Untitled

a guest
Apr 14th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1. else if( dialogid == dialog_VEHLIST ) {
  2. if( !response ) return 1;
  3. if( response ) {
  4. switch( listitem ) {
  5. case 0: {
  6. if( PlayerInfo[ playerid ][ xVoziloID ][ 0 ] == -1 ) return GRESKA( playerid, "Ti ne posedujes vozilo u ovom slotu.");
  7. if( PlayerInfo[ playerid ][ xVoziloID ][ 0 ] == 0 ) return GRESKA( playerid, "Ti ne posedujes vozilo u ovom slotu.");
  8. new vFile[ 50 ];
  9. format( vFile, sizeof( vFile ), V_FILE, PlayerInfo[ playerid ][ xVoziloID ][ 0 ] );
  10. if( fexist( vFile ) ) {
  11. if( strcmp( ImeIgraca( playerid ), VehicleInfo[ PlayerInfo[ playerid ][ xVoziloID ][ 0 ] ][ vOwner ], true ) == 0 ) {
  12. ChosenVehicle[ playerid ] = PlayerInfo[ playerid ][ xVoziloID ][ 0 ];
  13. SPD( playerid, dialog_VEHCHOSEN, DSL, "Vozilo", "Informacije\nParkiraj\nLociraj\nUgradi GPS\nProdaj igracu\nProdaj otpadu\nMakni tuning\nNeon\nGepek\nPromeni boju\nPostavi Oglas\nSkini oglas", "Odaberi", "Nazad" );
  14. }
  15. else {
  16. SCM( playerid, ANTICHEAT, "Garix Ovo vozilo nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
  17. }
  18. }
  19. else {
  20. SCM( playerid, ANTICHEAT, "Garix Vase vozilo ne postoji u bazi podataka, obratite se na forumu ako mislite je greska." );
  21. }
  22. }
  23. case 1: {
  24. if( PlayerInfo[ playerid ][ xVoziloID ][ 1 ] == -1) return GRESKA( playerid, "Ti ne posedujes vozilo u ovom slotu.");
  25. if( PlayerInfo[ playerid ][ xVoziloID ][ 1 ] == 0 ) return GRESKA( playerid, "Ti ne posedujes vozilo u ovom slotu.");
  26. new vFile[ 50 ];
  27. format( vFile, sizeof( vFile ), V_FILE, PlayerInfo[ playerid ][ xVoziloID ][ 1 ] );
  28. if( fexist( vFile ) ) {
  29. if( strcmp( ImeIgraca( playerid ), VehicleInfo[ PlayerInfo[ playerid ][ xVoziloID ][ 1 ] ][ vOwner ], true ) == 0 ) {
  30. ChosenVehicle[ playerid ] = PlayerInfo[ playerid ][ xVoziloID ][ 1 ];
  31. SPD( playerid, dialog_VEHCHOSEN, DSL, "Vozilo", "Informacije\nParkiraj\nLociraj\nUgradi GPS\nProdaj igracu\nProdaj otpadu\nMakni tuning\nNeon\nGepek\nPromeni boju\nPostavi Oglas\nSkini oglas", "Odaberi", "Nazad" );
  32. }
  33. else {
  34. SCM( playerid, ANTICHEAT, "Garix Ovo vozilo nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
  35. }
  36. }
  37. else {
  38. SCM( playerid, ANTICHEAT, "Garix Vase vozilo ne postoji u bazi podataka, obratite se na forumu ako mislite je greska." );
  39. }
  40. }
  41. case 2: {
  42. if( PlayerInfo[ playerid ][ xVoziloID ][ 2 ] == -1) return GRESKA( playerid, "Ti ne posedujes vozilo u ovom slotu.");
  43. if( PlayerInfo[ playerid ][ xVoziloID ][ 2 ] == 0 ) return GRESKA( playerid, "Ti ne posedujes vozilo u ovom slotu.");
  44. new vFile[ 50 ];
  45. format( vFile, sizeof( vFile ), V_FILE, PlayerInfo[ playerid ][ xVoziloID ][ 2 ] );
  46. if( fexist( vFile ) ) {
  47. if( strcmp( ImeIgraca( playerid ), VehicleInfo[ PlayerInfo[ playerid ][ xVoziloID ][ 2 ] ][ vOwner ], true ) == 0 ) {
  48. ChosenVehicle[ playerid ] = PlayerInfo[ playerid ][ xVoziloID ][ 2 ];
  49. SPD( playerid, dialog_VEHCHOSEN, DSL, "Vozilo", "Informacije\nParkiraj\nLociraj\nUgradi GPS\nProdaj igracu\nProdaj otpadu\nMakni tuning\nNeon\nGepek\nPromeni boju\nPostavi Oglas\nSkini oglas", "Odaberi", "Nazad" );
  50. }
  51. else {
  52. SCM( playerid, ANTICHEAT, "Garix Ovo vozilo nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
  53. }
  54. }
  55. else {
  56. SCM( playerid, ANTICHEAT, "Garix Vase vozilo ne postoji u bazi podataka, obratite se na forumu ako mislite je greska." );
  57. }
  58. }
  59. case 3: {
  60. if( PlayerInfo[ playerid ][ xVoziloID ][ 3 ] == -1) return GRESKA( playerid, "Ti ne posedujes vozilo u ovom slotu.");
  61. if( PlayerInfo[ playerid ][ xVoziloID ][ 3 ] == 0 ) return GRESKA( playerid, "Ti ne posedujes vozilo u ovom slotu.");
  62. new vFile[ 50 ];
  63. format( vFile, sizeof( vFile ), V_FILE, PlayerInfo[ playerid ][ xVoziloID ][ 3 ] );
  64. if( fexist( vFile ) ) {
  65. if( strcmp( ImeIgraca( playerid ), VehicleInfo[ PlayerInfo[ playerid ][ xVoziloID ][ 3 ] ][ vOwner ], true ) == 0 ) {
  66. ChosenVehicle[ playerid ] = PlayerInfo[ playerid ][ xVoziloID ][ 3 ];
  67. SPD( playerid, dialog_VEHCHOSEN, DSL, "Vozilo", "Informacije\nParkiraj\nLociraj\nUgradi GPS\nProdaj igracu\nProdaj otpadu\nMakni tuning\nNeon\nGepek\nPromeni boju\nPostavi Oglas\nSkini oglas", "Odaberi", "Nazad" );
  68. }
  69. else {
  70. SCM( playerid, ANTICHEAT, "Garix Ovo vozilo nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
  71. }
  72. }
  73. else {
  74. SCM( playerid, ANTICHEAT, "Garix Vase vozilo ne postoji u bazi podataka, obratite se na forumu ako mislite je greska." );
  75. }
  76. }
  77. }
  78. }
  79. }
Add Comment
Please, Sign In to add comment