Vehicle Storage
#3

This code is working fine on my server,try if you want.
Код:
CMD:vstorage(playerid, params[])
{
	new vstring[1024];
	for(new i, iModelID; i < MAX_PLAYERVEHICLES; i++) {
		if((iModelID = PlayerVehicleInfo[playerid][i][pvModelId] - 400) >= 0) {
			if(PlayerVehicleInfo[playerid][i][pvImpounded]) {
				format(vstring, sizeof(vstring), "%s\n%s (impounded)", vstring, VehicleName[iModelID]);
			}
			else if(PlayerVehicleInfo[playerid][i][pvDisabled]) {
				format(vstring, sizeof(vstring), "%s\n%s (disabled)", vstring, VehicleName[iModelID]);
			}
			else if(!PlayerVehicleInfo[playerid][i][pvSpawned]) {
				format(vstring, sizeof(vstring), "%s\n%s (stored)", vstring, VehicleName[iModelID]);
			}
			else format(vstring, sizeof(vstring), "%s\n%s (spawned)", vstring, VehicleName[iModelID]);
		}
		else strcat(vstring, "\nEmpty");
	}
	ShowPlayerDialog(playerid, VSTORAGE, DIALOG_STYLE_LIST, "Vehicle storage", vstring, "(De)spawn", "Cancel");
	return 1;
}
Reply


Messages In This Thread
Vehicle Storage - by Just rp - 06.02.2012, 14:15
Re: Vehicle Storage - by RazerKhan - 25.03.2014, 14:31
Re: Vehicle Storage - by Pr0GreSiVe - 25.03.2014, 14:36
Re: Vehicle Storage - by Carlozki - 30.09.2014, 02:23
Re: Vehicle Storage - by MostafaOsama - 02.07.2017, 22:01
Re: Vehicle Storage - by aoky - 02.07.2017, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)