CMD:apark(playerid, params[])
{
new carid = GetPlayerVehicleID(playerid), Float: Pos[3], Float: Angle, string[500], szQuery[256];
if(PlayerInfo[playerid][pAdmin] < 5 || !IsPlayerAdmin(playerid)) return SCM(playerid, COLOR_RED, "{FF0000}Info:{FFFFFF} Nu ai acces la aceasta comanda!");
if(!IsPlayerInAnyVehicle(playerid)) return 1;
if(ServerVehicles[carid][vID] == 0) {
SCM(playerid, COLOR_WHITE1, "Acest vehicul nu face parte din baza de date.");
return 1;
}
GetVehiclePos(carid, Pos[0], Pos[1], Pos[2]);
GetVehicleZAngle(carid, Angle);
ServerVehicles[carid][vLocation][0] = Pos[0];
ServerVehicles[carid][vLocation][1] = Pos[1];
ServerVehicles[carid][vLocation][2] = Pos[2];
ServerVehicles[carid][vAngle] = Angle;
DestroyVehicle(carid);
CreateVehicleEx(ServerVehicles[carid][vModel], ServerVehicles[carid][vLocation][0], ServerVehicles[carid][vLocation][1], ServerVehicles[carid][vLocation][2], ServerVehicles[carid][vAngle], ServerVehicles[carid][vColor][0], ServerVehicles[carid][vColor][1], -1);
SetVehicleNumberPlate(carid, ServerVehicles[carid][vNumberPlate]);
ChangeVehicleColor(carid, ServerVehicles[carid][vColor][0], ServerVehicles[carid][vColor][1]);
PutPlayerInVehicle(playerid, carid, 0);
format(string, sizeof(string), "Pozitiile vehiculului au fost modificate cu succes (vID: %d).", carid);
SCM(playerid, COLOR_YELLOW, string);
format(szQuery, sizeof(szQuery), "UPDATE `svehicles` SET `LocationX` = '%f', `LocationY` = '%f', `LocationZ` = '%f', `Angle` = '%f' WHERE `vID` = '%d'", Pos[0], Pos[1], Pos[2], Angle, carid);
mysql_query(SQL, szQuery);
return 1;
}