Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:cars ( playerid, params [ ] )
- {
- if ( isnull ( params ) )
- {
- new string[880];
- new param4[800];
- if ( pVeh [ playerid ] [ 0 ] == -1 && pVeh [ playerid ] [ 1 ] == -1 && pVeh [ playerid ] [ 2 ] == -1
- && pVeh [ playerid ] [ 3 ] == -1 && pVeh [ playerid ] [ 4 ] == -1 && pVeh [ playerid ] [ 5 ] == -1 && pVeh [ playerid ] [ 6 ] == -1 && pVeh [ playerid ] [ 7 ] == -1
- && 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." );
- new vehicleid = pVeh [ playerid ] [ 0 ];
- if ( vehicleid != -1 )
- {
- format ( param4, sizeof ( param4 ), "%s(%s)\n", GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
- VehSelect [ playerid ] = 1 ;
- }
- else if ( pVeh [playerid] [ 0 ] == -1 )
- {
- format(string,sizeof(string),"{FF0000}None");
- VehSelect [ playerid ] = 0 ;
- }
- format(string,sizeof(string),"%s",param4);
- vehicleid = pVeh [ playerid ] [ 1 ];
- if ( vehicleid != -1 )
- {
- format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
- }
- vehicleid = pVeh [ playerid ] [ 2 ];
- if ( vehicleid != -1 )
- {
- format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
- }
- vehicleid = pVeh [ playerid ] [ 3 ];
- if ( vehicleid != -1 )
- {
- format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
- }
- vehicleid = pVeh [ playerid ] [ 4 ];
- if ( vehicleid != -1 )
- {
- format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
- }
- vehicleid = pVeh [ playerid ] [ 5 ];
- if ( vehicleid != -1 )
- {
- format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
- }
- vehicleid = pVeh [ playerid ] [ 6 ];
- if ( vehicleid != -1 )
- {
- format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
- }
- vehicleid = pVeh [ playerid ] [ 7 ];
- if ( vehicleid != -1 )
- {
- format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
- }
- vehicleid = pVeh [ playerid ] [ 8 ];
- if ( vehicleid != -1 )
- {
- format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
- }
- vehicleid = pVeh [ playerid ] [ 9 ];
- if ( vehicleid != -1 )
- {
- format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
- }
- vehicleid = pVeh [ playerid ] [ 10 ];
- if ( vehicleid != -1 )
- {
- format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
- }
- vehicleid = pVeh [ playerid ] [ 11 ];
- if ( vehicleid != -1 )
- {
- format ( string, sizeof ( string ), "%s%s(%s)\n",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
- }
- vehicleid = pVeh [ playerid ] [ 12 ];
- if ( vehicleid != -1 )
- {
- format ( string, sizeof ( string ), "%s%s(%s)",string, GetVehicleName ( vInfo [ vehicleid ] [ vModel ] ), ( ( vInfo [ vehicleid ] [ vLock ] ) ? ( "{FF0000}Locked" ) : ( "{00FF15}Unlocked" ) ) );
- }
- OnPersonalVehUpdate();
- ShowPlayerDialog ( playerid, DIALOG_CARS, DIALOG_STYLE_LIST, "Vehicule personale", string, "Select", "Close" );
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment