24.08.2013, 21:09
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
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");
}


