[Request]Vehicle storage fix.
#1

Hello, i have vstorage script for my cars in my script but i don't know why when i click on my car i got tp'ed to it?
My Problem is i want my /vstorage to [Despawn,Spawn] my cars not tp to them..
Here some info
Код:
CMD:trackcar(playerid, params[])
{
	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, TRACKCAR, DIALOG_STYLE_LIST, "OnStar Vehicle GPS Tracking", vstring, "Track", "Cancel");
	return 1;
}

CMD:vstorage(playerid, params[])
{
	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, "OnStar Vehicle Storage", vstring, "(UN)Store", "Cancel");
	return 1;
}

CMD:gtrackcar(playerid, params[])
{
	if(PlayerInfo[playerid][pFMember] == 255) return SendClientMessageEx(playerid, COLOR_GRAD1, "You need to be in a family for this command.");
	new vstring[1024];
	for(new i = 0; i < MAX_GANG_VEHICLES; i++)
	{
		if(FamilyVehicleInfo[PlayerInfo[playerid][pFMember]][i][fvId] != INVALID_VEHICLE_ID)
		{
			format(vstring, sizeof(vstring), "%s\n%s", vstring, VehicleName[FamilyVehicleInfo[PlayerInfo[playerid][pFMember]][i][fvModelId] - 400]);
		}
		else if(FamilyVehicleInfo[PlayerInfo[playerid][pFMember]][i][fvImpounded] == 1) {
			format(vstring, sizeof(vstring), "%s\n%s (impounded)", vstring, VehicleName[FamilyVehicleInfo[PlayerInfo[playerid][pFMember]][i][fvModelId] - 400]);
		}
		else
		{
			format(vstring, sizeof(vstring), "%s\nEmpty", vstring);
		}
	}
	return ShowPlayerDialog(playerid, GTRACKCAR, DIALOG_STYLE_LIST, "OnStar Vehicle GPS Tracking", vstring, "Track", "Cancel");
}
Reply
#2

What do you mean when you click on your car, and who is them? Your don't want your cars to tp to who??
Reply
#3

Quote:
Originally Posted by coole210
Посмотреть сообщение
What do you mean when you click on your car, and who is them? Your don't want your cars to tp to who??
when i do /vstorage and i click to my car i got tped to it,i don't want this..
i want when i do /vstorage to despawn/spawn my cars.|
Like in ngg ...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)