10.12.2012, 18:22
Close but no cigar. This should work:
pawn Код:
#include <a_samp>
#include <zcmd>
#define MAX_PLAYERVEHICLES 5
#define VSTORAGE 19103
public OnFilterScriptInit()
{
return 1;
}
CMD:vstorage(playerid, params[])
{
SendClientMessage(playerid, COLOR_YELLOW, "Command currently Disabled");
new vstring[1024];
for(new i; i < MAX_PLAYERVEHICLES; i++)
{
if(PlayerVehicleInfo[playerid][i][pvId] > INVALID_PLAYER_VEHICLE_ID)
format(vstring, sizeof(vstring), "%s\n%s", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);
else if(PlayerVehicleInfo[playerid][i][pvImpounded] == 1)
format(vstring, sizeof(vstring), "%s\n%s (impounded)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);
else
format(vstring, sizeof(vstring), "%s\nEmpty", vstring);
}
ShowPlayerDialog(playerid, VSTORAGE, DIALOG_STYLE_LIST, "Vehicle Storage", vstring, "(De)Spawn", "Cancel");
return 1;
}