Guest User

Untitled

a guest
Dec 31st, 2015
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.59 KB | None | 0 0
  1. CMD:cars ( playerid, params [ ] )
  2. {
  3. if ( isnull ( params ) )
  4. {
  5. new string[880];
  6. new param4[800];
  7. if ( pVeh [ playerid ] [ 0 ] == -1 && pVeh [ playerid ] [ 1 ] == -1 && pVeh [ playerid ] [ 2 ] == -1
  8. && pVeh [ playerid ] [ 3 ] == -1 && pVeh [ playerid ] [ 4 ] == -1 && pVeh [ playerid ] [ 5 ] == -1 && pVeh [ playerid ] [ 6 ] == -1 && pVeh [ playerid ] [ 7 ] == -1
  9. && pVeh [ playerid ] [ 8 ] == -1 && pVeh [ playerid ] [ 9 ] == -1 && pVeh [ playerid ] [ 10 ] == -1 && pVeh [ playerid ] [ 11 ] == -1 && pVeh [ playerid ] [ 12 ] == -1) return SendClientMessage ( playerid, -1, "* Nu detii vehicule personale." );
  10. new vehicleid = pVeh [ playerid ] [ 0 ];
  11. if ( vehicleid != -1 )
  12. {
  13. format ( param4, sizeof ( param4 ), "%s(%s)\n", GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
  14. VehSelect [ playerid ] = 1 ;
  15. }
  16. else if ( pVeh [playerid] [ 0 ] == -1 )
  17. {
  18. format(string,sizeof(string),"{FF0000}None");
  19. VehSelect [ playerid ] = 0 ;
  20. }
  21. format(string,sizeof(string),"%s",param4);
  22. vehicleid = pVeh [ playerid ] [ 1 ];
  23. if ( vehicleid != -1 )
  24. {
  25. format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
  26. }
  27. vehicleid = pVeh [ playerid ] [ 2 ];
  28. if ( vehicleid != -1 )
  29. {
  30. format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
  31. }
  32. vehicleid = pVeh [ playerid ] [ 3 ];
  33. if ( vehicleid != -1 )
  34. {
  35. format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
  36. }
  37. vehicleid = pVeh [ playerid ] [ 4 ];
  38. if ( vehicleid != -1 )
  39. {
  40. format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
  41. }
  42. vehicleid = pVeh [ playerid ] [ 5 ];
  43. if ( vehicleid != -1 )
  44. {
  45. format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
  46. }
  47. vehicleid = pVeh [ playerid ] [ 6 ];
  48. if ( vehicleid != -1 )
  49. {
  50. format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
  51. }
  52. vehicleid = pVeh [ playerid ] [ 7 ];
  53. if ( vehicleid != -1 )
  54. {
  55. format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
  56. }
  57. vehicleid = pVeh [ playerid ] [ 8 ];
  58. if ( vehicleid != -1 )
  59. {
  60. format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
  61. }
  62. vehicleid = pVeh [ playerid ] [ 9 ];
  63. if ( vehicleid != -1 )
  64. {
  65. format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
  66. }
  67. vehicleid = pVeh [ playerid ] [ 10 ];
  68. if ( vehicleid != -1 )
  69. {
  70. format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
  71. }
  72. vehicleid = pVeh [ playerid ] [ 11 ];
  73. if ( vehicleid != -1 )
  74. {
  75. format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
  76. }
  77. vehicleid = pVeh [ playerid ] [ 12 ];
  78. if ( vehicleid != -1 )
  79. {
  80. format ( string, sizeof ( string ), "%s%s(%s)",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
  81. }
  82. OnPersonalVehUpdate();
  83. ShowPlayerDialog ( playerid, DIALOG_CARS, DIALOG_STYLE_LIST, "Vehicule personale", string, "Select", "Close" );
  84. }
  85. return 1;
  86. }
Add Comment
Please, Sign In to add comment